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 · 29 articles

LWC

LWC pass value to JS controller using hyperlinks

Passing data from a link to your controller shouldn't be complicated. This guide shows you how to use data attributes...

· 5 min read
LWC

LWC Data Binding: Examples and Best Practices

· 5 min read
LWC

LWC Design Attributes: Make Components Admin-Friendly

Tired of admins asking you to change a label or a hex color? Use LWC Design Attributes to expose those settings in the...

· 6 min read
LWC

LWC dynamic import: How to load components on demand

Stop loading heavy components all at once and making your pages sluggish. I will show you how to use dynamic imports to...

· 5 min read
LWC

Refresh LWC data with Platform Events and refreshApex

Ever update a record in Salesforce only to see your custom LWC still showing old data? This guide shows you how to use...

· 5 min read
LWC

How to disable paste lightning input in Salesforce LWC

Stopping users from pasting into a lightning-input field is tricky because of the Shadow DOM. Here are three ways to...

· 5 min read
LWC

Build a Custom Salesforce Flow Counter LWC for Better UX

Standard number inputs in Screen Flows can be a pain for mobile users. This guide shows you how to build a custom...

· 6 min read
LWC

LWC class binding - Use objects and arrays in API 62.0

Managing dynamic CSS classes in Salesforce used to be a headache with all those string concatenations. With the new LWC...

· 5 min read
LWC

Close your Dispatcher Console custom action programmatically

Ever built a custom action for the Dispatcher Console only to have the window stay open after the logic finishes? You...

· 4 min read
LWC

Refresh GraphQL Query Results in Lightning Web Components

Refresh cached GraphQL query results in LWC using refreshGraphQL(result) and keep your UI up-to-date after updates.

· 3 min read
LWC

Quickly Creating Cases from the Salesforce Service Console using Utility Actions

A practical guide to building a Service Console utility that lets agents capture case details quickly via an...

· 4 min read
LWC

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

Safely display SSNs in LWC by checking View Encrypted Data in Apex, masking unauthorized users' values, and returning...

· 4 min read