What are Dynamic Forms in Salesforce?
Updated · By the Clientell AI team · How we write
Dynamic Forms in Salesforce is a Lightning App Builder feature that moves fields and sections off the page layout and onto the Lightning record page. You place each field where you want it and add visibility rules, so a field shows only when conditions are met. One flexible page can replace many near-identical layouts.
Key facts
- Built in
- Lightning App Builder, on Lightning record pages
- Components
- Field and Field Section, found on the Fields tab of the component pane
- Rules
- Visibility filters on fields and sections, based on record values, user details and device
- Standard objects
- Account, Contact and Opportunity since Winter '23, and most other LWC-enabled objects
- Not supported
- Objects that are not LWC-enabled, such as Products, Events and Tasks, and fixed-layout objects like Note, per Salesforce Help
- Upgrade path
- Select Record Detail on the page, then click Upgrade Now
Clientell AI, the AI Salesforce admin, documents how Dynamic Forms is used in your org in a read-only scan, and flags anything risky or unused. See org documentation
Try it in Clientell AI
“Document how Dynamic Forms is used in my org and list anything that looks risky or unused.”
Clientell AI reads your org first. Platform deployments include rollback. How security works.
How do Dynamic Forms work?
A classic page layout is one block. Every field in it shows together. To change what shows, you build another layout and assign it by profile or record type.
Dynamic Forms breaks that block apart. You drag individual Field and Field Section components onto the Lightning record page. Each one can carry its own visibility rule. The fields users see when they create, edit or clone a record also come from the page, not the layout, per Salesforce Help.
Which objects support Dynamic Forms?
Custom objects support it. Standard objects came in stages. Salesforce added Account (including person account), Contact and Opportunity in Winter '23, and made standard objects and mobile generally available in Winter '24.
Salesforce says it is supported for most, but not all, standard LWC-enabled objects. Objects that are not LWC-enabled, like Products, Events and Tasks, still use the page layout. To test any object, open its record page in Lightning App Builder. If the Fields tab is missing in the component pane, the object does not support Dynamic Forms.
Page layouts vs Dynamic Forms
Both control what a user sees on a record. Dynamic Forms gives finer control over fields. Page layouts still own related lists, buttons and quick actions.
| Page layout | Dynamic Forms | |
|---|---|---|
| Where you edit | Page Layout editor in Object Manager | Lightning App Builder |
| Unit of control | The whole layout | Each field and section |
| Show or hide by rule | No. Needs separate layouts. | Yes, visibility rules |
| Changes with record values | No | Yes, for fields |
| Related lists, buttons, actions | Yes | No. Still set on the layout. |
| Field-level security applies | Yes | Yes |
How do you upgrade a record page with Upgrade Now?
Example: upgrade the Opportunity record page so Reason for Loss shows only when Stage is Closed Lost. Use a sandbox copy of the page first.
- Go to Setup > Object Manager > Opportunity > Lightning Record Pages, and edit the page.
- Click the Details tab, then select the Record Detail component.
- In the properties pane, click Upgrade Now. The migration wizard opens.
- Click Next, select the page layout to copy, and click Finish. The wizard adds the layout's fields and sections to the page and removes Record Detail.
- Select the Reason for Loss field, open Set Component Visibility, and add a filter: Stage Equals Closed Lost.
- Save and activate the page. Then check it as a user on a different profile.
What should you know about visibility rules?
Visibility rules on a field are checked while the user edits, so the field can appear or vanish as soon as a value changes. Rules on a field section are different. They are not dynamic and do not react while the user edits, per Salesforce Help.
Two more details matter. Dependent picklist fields do not respect visibility rules. And if a user edits a field that a rule hides, the new value is not saved. Field and Field Section components render on desktop, so for phones turn on Dynamic Forms on Mobile in Salesforce Mobile App Setup.
Common mistakes with Dynamic Forms
Most problems come from mixing the old and new models.
- Keeping Record Detail and field sections on one page: it can cause two save bars and broken rules. Remove Record Detail after the upgrade.
- Leaving Record Detail - Mobile on the page: mobile users see only that component. Remove it.
- Trusting section rules while editing: they run after save. Put the rule on the fields if you need live behavior.
- Assuming a hidden field is secure: visibility is not security. Use field-level security to protect data.
- Forgetting required fields: universally required fields missing from the source layout are not added. Check them after the wizard.
- Splitting by record type out of habit: one page with visibility rules is often enough.
FAQ: Dynamic Forms in Salesforce
What are Dynamic Forms in Salesforce?
A Lightning App Builder feature that lets you place individual fields and sections on a record page and show or hide them with rules, instead of using one fixed page layout.
Do Dynamic Forms replace page layouts?
For fields, yes. Page layouts still control related lists, buttons and actions, so many orgs use both.
Which standard objects support Dynamic Forms?
Account, Contact and Opportunity were added in Winter '23, and Salesforce supports most other LWC-enabled standard objects. Products, Events and Tasks are not LWC-enabled and do not support it.
How do I upgrade a page to Dynamic Forms?
Open the record page in Lightning App Builder, select Record Detail, and click Upgrade Now. The wizard copies the fields and sections of the layout you pick onto the page.
Do Dynamic Forms work on mobile?
Yes, once you enable Dynamic Forms on Mobile in Salesforce Mobile App Setup. Remove any Record Detail - Mobile component from the page.
Does field-level security still apply?
Yes. Dynamic Forms controls layout and visibility. Field-level security still decides whether a user can see or edit a field.
Sources: Salesforce Help: Break Up Your Record Details with Dynamic Forms, Salesforce Help: Migrate a Record Page to Dynamic Forms, Salesforce Help: Dynamic Forms Tips and Considerations, Salesforce Admin Blog: Dynamic Forms on Standard Objects, Salesforce Admin Blog: 3 Ways to Drive Productivity with Dynamic Forms, Trailhead: Upgrade to Dynamic Forms. Last reviewed .
Related Salesforce Terms
4 termsPage Layout
AdministrationA Page Layout controls the arrangement of fields, buttons, related lists, and custom links on a record detail and edit page in Salesforce.
Lightning App Builder
AdministrationLightning App Builder is a point-and-click tool for creating custom Lightning pages (including record pages, app pages, and home pages) without writing code.
Field-Level Security (FLS)
SecurityFLS (Field-Level Security) controls which users can see or edit each field, set per profile or permission set. A field with no access is hidden everywhere: layouts, reports, list views and API responses.
Record Type
AdministrationA Record Type in Salesforce lets you offer different business processes, picklist values, and page layouts for the same object based on user profile or context.
What should I read next?
More in Administration
View all →Salesforce Admin
A Salesforce Admin is the person responsible for configuring, maintaining, and optimizing a Salesforce org to meet an organization's business needs.
Profile
A Profile in Salesforce defines the baseline set of permissions, page layout assignments, and system settings that apply to every user assigned to it.
Permission Set
A Permission Set is a collection of permissions that can be assigned to users on top of their profile to grant additional access without changing the profile itself.
Role Hierarchy
The Role Hierarchy in Salesforce controls record-level visibility by granting users access to records owned by anyone below them in the hierarchy tree.
Try this on your own org
Start the 14-day free trial, no card. Clientell AI asks before it changes anything in production.
14-day free trial · No credit card required