Salesforce Dynamic Form & Dynamic Action

Salesforce Dynamic Forms and Actions

In this post/session we cover what is Salesforce dynamic forms and dynamic actions. We will also talk about how to get started with Dynamic forms and it limitation. Dynamic form was #1 Requested feature on Idea Exchange.

What are Dynamic Forms?

Use Dynamic Forms to define the layout of a record detail page that contains fields and sections (what we do with page layouts currently). What makes this dynamic is you can show/hide the sections & fields based on certain filter criteria, which currently is not possible with page layouts. Hence, it provides more granular control to admins and consultants.

Introduced in Summer ‘20 and GA in Winter ‘21 Release

  • GA for Custom Objects on Desktop
  • Beta for Custom Objects on Mobile
  • Beta for Standard Objects on Desktop

Benefits of Dynamic Forms

What is the benefits of Dynamic forms for System Admin and why we should use it?

  • Upgrade from Page Layouts : Place fields and sections wherever you want (and even on separate tabs)
  • Dynamic Layouts : Use visibility rules to show and hide fields and sections
  • Simpler Layout Management : Manage the fields and sections on your pages in the Lightning App Builder without touching the page layout editor
  • Reduce Page Layouts : Reduce the number of page layouts you need with component visibility rules
  • Single Assignment Model :Use single assignment model for the Lightning page instead of dual model of assigning a Lightning page & a page layout

Use Cases for Dynamic Forms

When we should use Dynamic forms?

  • Show a particular section or fields on page layout based on value of other fields
  • For example, display a component or section when Lead or Opportunity or Quote has reached a certain stage
  • Show a particular section or fields on page layout based on value of fields on the Parent Object
  • Create a separate layout with selected fields for users with certain profiles or different layouts depending on the form factor

Limitations of Dynamic Forms

Is there any limitation with Dynamic forms? Yes currently Dynamic forms is supported on custom object only and you can add only 100 fields per column in a Field Section components. Blank spaces are also not supported and Traditional page layouts will still control related lists.

All below feature are not supported in Dynamic forms.

Step to Setup Dynamic Forms

Follow below step to create the Dynamic forms in Salesforce. Please check our recording for step by step process to setup the Dynamic Forms.

  • Enable Dynamic Forms
  • Add Field Section Component to Lightning Record Page
  • Create Filter to Set Component Visibility
  • Test Dynamic Forms

Introduction To Dynamic Actions

When we click on the Highlight Panel in the side bar you will notice a new option to enable Dynamic Actions. It allow us to control which action will appear in the highlight panel

What are Dynamic Actions?

  • Control Quick Actions and Mobile & Lightning Actions from Lightning App Builder
  • Configure Action bar visibility on the record page with certain criteria
  • Reduce clutter of action buttons in the Highlights Panel
  • Add and/or remove actions on the page with modern UI and live preview
  • Introduced in Summer ‘20 and GA in Winter ‘21 Release
    • GA for Custom Objects on Desktop
    • Beta for Custom Objects on Mobile
    • Beta for Standard Objects on Desktop

Benefits of Dynamic Actions

  • Instant Upgrade for Actions : Add, reorder, and remove actions directly from within the Lightning App Builder, with a modern UI and live preview.
  • Dynamic Pages : Use visibility rules to show and hide actions to ensure users see only what is important to each of them, at a given time.
  • Simpler Layout Management : Manage the actions on your pages in the Lightning App Builder without touching the page layout editor.
  • Reduce Page Layouts : Reduce the number of page layouts you need with action visibility rules.
  • Single Assignment Model : Use single assignment model for the Lightning page instead of dual model of assigning a Lightning page & a page layout.

Use Cases for Dynamic Action

  • Show a particular action button based on value of other fields
  • Display or hide action buttons depending on the picklist value fields
  • Show an action button on page layout based on value of fields on the Parent Object
  • Show a separate set of buttons for users with certain profiles or different buttons depending on the form factor

Demo of Dynamic Forms and Dynamic Action

Date     : WED, DEC 23, 2020 10:00 AM EST (8:30 PM IST)
Speaker  :  Ashish Agarwal

Extra Bytes

  • Can I undo Dynamic Forms & Actions?
  • Can I enable it only for a subset of users?
  • How do I use Dynamic Actions with Record Types?

Don’t forget to check above recording to get answers of all questions.

Useful URLs

Leave a Comment