By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
(For Admins Who Need to Ship, Not Just Pass Exams)
Dynamic Forms and Dynamic Actions are two of Salesforce’s most powerful (and underused) features for building flexible, user-friendly page layouts without code. They let you: - Show/hide fields and actions based on record data, user permissions, or device type (e.g., hide a "Manager Approval" button if the user isn’t a manager). - Replace clunky, one-size-fits-all page layouts with dynamic, context-aware UIs that adapt to the user’s needs. - Reduce technical debt by eliminating the need for multiple page layouts or custom Lightning components for simple visibility rules.
Real-world scenario: You inherit a Salesforce org where the Opportunity page layout is a mess—sales reps see 50+ fields, but only 10 are relevant to them. Managers need extra fields for approvals, and mobile users need a stripped-down view. Without Dynamic Forms, you’d need: - 3 separate page layouts (desktop, mobile, manager). - Custom Lightning components to hide/show fields. - A maintenance nightmare when fields change.
With Dynamic Forms, you: - Use one layout with visibility rules. - Update fields in one place (no more syncing layouts). - Let users reorder fields without admin help.
Why this matters in production: - Faster user adoption: Reps see only what they need, reducing cognitive load. - Lower maintenance: No more juggling 10 layouts for one object. - Better mobile UX: Hide desktop-only fields on phones/tablets. - Security: Hide sensitive fields (e.g., "Commission Rate") from non-managers.
<div>
ISPICKVAL(Status, "Closed")
Amount > 10000
Salesforce org (Developer or Sandbox). ? System Administrator permissions. ? Opportunity object with some sample data. ? Basic familiarity with Lightning App Builder.
Goal: Hide the "Amount" field if the Stage = "Prospecting".
Stage
Not Equal To
Prospecting
Test it: - Open an Opportunity where Stage = "Prospecting"-Amount should disappear. - Change Stage to "Negotiation"-Amount should reappear.
Goal: Only show the "Approve" button if the user is a manager.
Manager
Test it: - Log in as a non-manager-"Approve" button should disappear. - Log in as a manager-"Approve" button should appear.
Goal: Hide the "Next Steps" field on mobile.
Desktop
Test it: - Open the page on mobile-"Next Steps" should disappear. - Open on desktop-"Next Steps" should appear.
DF_Opp_Basics
DA_Approve_ManagerOnly
sql SELECT Id, Name, StageName FROM Opportunity WHERE Id = '006XXXXXXXXXXXX'
ISPICKVAL(Stage, "Closed")
Record Types (different picklist values, not field visibility)
"How do you hide the 'Approve' button for non-managers?"
Removing the button from the page layout (static)
"What’s the best way to show different fields on mobile vs. desktop?"
"You need to hide the 'Discount' field from sales reps unless the Opportunity Amount > $10,000. What’s the best approach?" --Dynamic Forms with a visibility rule: Amount > 10000 --Create a separate page layout for high-value opportunities (too much maintenance). --Use a validation rule (wrong tool for the job).
Build a Dynamic Case Layout where:1. The "Escalate" button only appears if Status = "New" and the user is a manager.2. The "Customer Feedback" field only appears if Status = "Closed".
Status = "New"
User Profile = "Manager"
Click Done-Save.
For the "Customer Feedback" field:
Status = "Closed"
Why it works: - Dynamic Actions control button visibility. - Dynamic Forms control field visibility. - Combining rules (e.g., Status + Profile) ensures only the right users see the right UI.
Status + Profile
Dynamic Forms and Dynamic Actions are your secret weapons for: ? Faster user adoption (less clutter = happier reps). ? Lower maintenance (one layout, not ten). ? Better security (hide sensitive data automatically).
Your next step:1. Pick an object (e.g., Case, Account, Opportunity).2. Replace one static layout with Dynamic Forms.3. Add one Dynamic Action (e.g., hide "Approve" for non-managers).4. Deploy and measure (ask users: "Is this layout better?").
You’ve just saved your org 10 hours of layout maintenance. Now go build something dynamic. ?
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.