Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →

LWC articles

Page 2 of 3 · 28 articles

Diagram illustrating different LWC data binding methods for developers, showing property and event flowLWC

LWC Data Binding: Examples and Best Practices

· 5 min read
Diagram illustrating how LWC Design Attributes simplify component configuration for Salesforce admins.LWC

LWC Design Attributes: Make Components Admin-Friendly

Tired of admins asking you to change a label or a hex color? Expose those settings in the App Builder with LWC Design...

· 5 min read
Diagram illustrating LWC dynamic import loading components asynchronously for better page performanceLWC

LWC dynamic import: How to load components on demand

Loading every heavy component at once is what makes your pages sluggish. Dynamic imports pull in the code only when...

· 5 min read
Diagram showing Platform Events triggering a refreshApex call to update LWC data in Salesforce.LWC

Refresh LWC data with Platform Events and refreshApex

Ever update a record in Salesforce and watch your custom LWC keep showing the old data? Here is how to use a Platform...

· 4 min read
A visual guide demonstrating how to effectively disable paste functionality in Salesforce LWC input fields.LWC

How to disable paste lightning input in Salesforce LWC

Stopping users from pasting into a lightning-input field is awkward because of the Shadow DOM. A native HTML input or a...

· 4 min read
Screenshot demonstrating a custom Salesforce Flow Counter component enhancing the user experience in a screen flowLWC

Build a Custom Salesforce Flow Counter LWC for Better UX

Standard number inputs in Screen Flows are a pain on a phone. This guide walks through a custom counter component that...

· 5 min read
Example demonstrating cleaner LWC class binding using objects and arrays in API 62.0LWC

LWC class binding - Use objects and arrays in API 62.0

Dynamic CSS classes in Salesforce used to mean string concatenation and the bugs that came with it. LWC class binding...

· 4 min read
Screenshot showing the code snippet for programmatically closing a Salesforce Dispatcher Console custom action windowLWC

Close your Dispatcher Console custom action programmatically

Build a custom action for the Dispatcher Console and the modal tends to sit there after your logic finishes. Standard...

· 3 min read
Example code demonstrating how to refresh GraphQL query results within a Lightning Web ComponentLWC

Refresh GraphQL Query Results in Lightning Web Components

Refresh cached GraphQL query results in LWC with refreshGraphQL(result) so the UI shows current data after a write.

· 3 min read
Screenshot demonstrating a custom utility action creating a new case within the Salesforce Service Console interface.LWC

Quickly Creating Cases from the Salesforce Service Console using Utility Actions

How to build a Service Console utility that lets agents capture case details fast, using an LWC wrapped in a small Aura...

· 4 min read
Diagram showing how to securely display an encrypted SSN field in an LWC component using Apex logic.LWC

Handling Encrypted SSN in LWC: Show Full or Masked SSNs Based on User Permission

Display SSNs safely in LWC: check View Encrypted Data in Apex, mask the value for anyone without it, and send the...

· 4 min read
Step-by-step guide to creating a dynamic tooltip in a Salesforce Lightning Datatable component.LWC

How to Create a Tooltip in Lightning Datatable

Show an account's phone and address on hover in a lightning-datatable, using a URL column tooltip with LWC and Apex.

· 3 min read