Dynamic Forms And Dynamic Actions is the next step in the evolution of Lightning record pages in Lightning Experience Salesforce. While Dynamic Forms adds a step of point-and-click customization for our Lightning record pages that previously required custom coding. And gives us ability to configure record detail page fields and sections inside Lightning App Builder. Dynamic Actions allow us to choose which actions appear in the Highlights Panel on the object’s record page. So we can now control visibility for each action based on factors that we specify.
So far if you haven’t read Summer 20 Release Notes, I suggest you should do that as they have many exiciting features.
Dynamic Forms are in Non-GA Preview and only supported for custom objects.
Benefits of Dynamic Pages
- Single assignment model for the Lightning page instead of the dual model of assigning a Lightning page and a page layout.
- Dynamic layouts: Use visibility rules to show and hide fields and sections.
- Better page performance: Put fields and sections into accordion components or tabs to significantly improve page load times.
- Reduce the number of page layouts we need with component visibility rules.
- Manage the fields and sections on pages in the Lightning App Builder without touching the page layout editor.
So today we will check step by step how we can enable them and use it.
Firstly, Lightning Experience Setup > Search for “Record Page Settings” and enable the Dynamic Forms.
After we enable it, we will get a new tab in Lightning Record pages “Fields”.
If we have existing pages available then we can simply upgrade them while we can also create new pages from scratch.
Once we enabled the Dynamic Forms we are ready to add fields and Dynamic actions in record page. So Select custom object for which you want to create new page. Firstly, we need to Drop the Field Section and then we can add fields in that. We can control visibility of individual fields as well. We will also add highlight section on top bar. So this is how our page will look like:
when you click on the Highlight Panel in the side bar you will notice a new option to enable Dynamic Actions (refer above image). So it allow us to control which action will appear in the hightlight panel.
The Eye icon means we have added custom visibility rules for this Action. Previously to do similar things we need to create Record Type and assign those record types to different profiles/users. But now we can control all that behaviour using one page. So it will definitely reduce the need of Record Types.
Like my Facebook page for more similar updates.
Finally I like to add feature tp use Dynamic Forms And Dynamic Actions with Standard objects. What features did you like to add here, let me know in comments. Happy programming 🙂