Skip to main content

UI Design

Explore practical guides and implementation patterns for this topic.

Posts

Lightning Web Components

Master Salesforce Lightning UI: Quick Actions, Dynamic Forms & Page Layouts

💬 In plain words: Buttons and actions are how users get things done on a record. Quick Actions are the native way to do this in Salesforce Lightning. JavaScript buttons are completely dead. Page Layouts still control basic field and related list availability, but the Lightning Record Page handles the overall component structure. Finally, Dynamic Forms takes things to the next level by letting you put individual fields right on the page and hide them based on specific rules. 📌 Real-Life Example: Imagine an older Salesforce org with a custom JavaScript button that recalculates an order total. If you switch to Lightning, clicking it does absolutely nothing. The modern fix? Rebuild it as a Quick Action that launches an auto-launched Flow, a Screen Flow, or a Lightning Web Component ( LWC ) that calls Apex. The user still clicks a button, but underneath, it uses a supported, modern mechanism.
Read article
Topic Apex Wrapper Hierarchical Data Lightning Web Components lightning-tree-grid Salesforce Development Tree View UI Design visualforce
Apex Wrapper Hierarchical Data Lightning Web Components lightning-tree-grid Salesforce Development Tree View UI Design visualforce

Building Hierarchical Tree Views in Salesforce: Visualforce, Apex & Modern LWC Guide

In plain words: A Tree View is a collapsible, hierarchical display that shows parent-child relationships between records—such as Corporate Accounts and their Child Subsidiaries, or Roles and Subordinates. In Salesforce, you construct tree views by structuring data using recursive Apex wrapper classes and rendering them with clean CSS in Visualforce or using native <lightning-tree-grid> components in modern Lightning Web Components (LWC). Standard Salesforce record lists display flat tables, making it difficult for users to visualize nested business relationships. Complex enterprise hierarchies—such as parent-child account trees, multi-level product bundles, or department role trees—require an intuitive, expandable node structure. Building custom tree views helps users navigate data relationships quickly without opening dozens of separate browser tabs.
Read article
Topic LWC
Lightning Web Components

Title: How to Add Icons Inside Input and Output Fields in Salesforce LWC

In plain words: Adding icons to input and output fields in LWC gives users clear visual cues about what data a field expects or displays. While standard record forms follow default layouts, custom LWC markup lets you place Salesforce Lightning Design System (SLDS) utility icons directly inside field containers, labels, or alongside read-only output values. Standard Salesforce record page layouts do not always fit bespoke business requirements, such as custom search bars, multi-step wizards, or interactive calculation panels. Building custom form elements in Lightning Web Components (LWC) with integrated icons enhances visual hierarchy, speeds up data entry, and maintains full alignment with the Salesforce Lightning Design System (SLDS).
Read article
Topic LWC
Lightning Web Components

How to Build a Custom Record History Component in Salesforce LWC

In plain words: A custom history component allows you to track and display specific data changes on a Salesforce record using a tailored user interface. Instead of relying purely on the standard out-of-the-box Related Lists, building this in Lightning Web Components (LWC) gives you total control over the design, logic, and user experience. Tracking historical data and field updates is a common requirement in Salesforce development. In this guide, we will walk through building a custom component using Lightning Web Components (LWC) to dynamically fetch and display record data. By the end of this tutorial, you'll have a fully functional template ready to be deployed to your org.
Read article
Topic Apex
Apex Development

How to Add jQuery DataTables to Visualforce: Pagination, Search & Sorting Guide

Displaying large datasets in Salesforce Visualforce pages using standard tables can quickly lead to slow page loads, messy interfaces, and limited user controls. Integrating the lightweight jQuery DataTables plugin turns standard HTML tables into dynamic data grids complete with instant search, multi-column sorting, and responsive pagination. In plain words: jQuery DataTables is a drop-in JavaScript library that enhances basic HTML tables with out-of-the-box client-side pagination, instant keyword filtering, and column sorting without reloading the page.
Read article
Topic LWC
Lightning Web Components

How to Build Reusable Pagination in Lightning Web Components (LWC) with Apex

Loading large datasets into a single view slows down page render speeds, clutters the UI, and risks exhausting browser memory. Implementing clean, responsive pagination inside your Lightning Web Components (LWC) delivers a crisp user experience while keeping data retrieval well within Salesforce platform limits. In plain words: LWC pagination splits large record lists into bite-sized pages. Instead of fetching thousands of records at once, the component requests only the current page slice from Apex or slices client-side memory on demand.
Read article