A Quick Guide to Getting Started with Dynamic Forms in Salesforce
Dynamic Forms was announced in Dreamforce 2019 as one of the features in the UI enhancements roadmap in Admin & Lightning Keynotes. It is now available as a Non-GA Preview in the Salesforce Summer ’20 release.
This is going to be a game-changing feature that will give admins and consultants the ability to have granular control of the record pages. You can now declaratively customize sections and fields of the page as per the business requirements. e.g., show a particular section when a picklist field has a certain value, Opportunity has reached a certain stage, display a section with relevant fields to a particular user profile, etc. So, there are fewer page layouts to maintain.
How does it work?
With Dynamic Forms comes a brand-new standard Lightning component called ‘Field Section’. You can add that component on the page, select the fields to add in the section, and create a filter to define
when to display the section
on which form factor to display the section, and
whom to display the section
Limitations
Dynamic Forms come with the following limitations in the Summer ’20 release, which will hopefully be addressed in subsequent releases.
Currently available as a Non-GA preview in the Summer ’20 release
Dynamic Forms is only available on custom objects for now (support for standard objects is on the roadmap for GA)
Isn’t supported on record pages that use pinned-region or custom page templates
Step-by-Step Guide
Here’s a first look at setting up Dynamic Forms in Salesforce. This guide covers how to:
Enable Dynamic Forms
Add Field Section component to the Lightning record page
Create a filter to set component visibility
Test Dynamic Forms
You can sign up for a Summer ’20 pre-release org here and get your hands-on experience with this awesome feature.
I also conducted a session with ApexHours that included the live demo of Dynamic Forms & Actions. Here is the link to the session video. Dynamic Forms is from 0:00 to 21:05 minutes on the timeline, after which the section on Dynamic Actions starts.
Dynamic Forms was the number one requested feature on IdeaExchange with this particular Idea (Dependent Page Layouts) being open for many years. The pilot was announced in Dreamforce 2019 as one of the features in the UI enhancements roadmap in Admin & Lightning Keynotes. Available as a Non-GA Preview in the Salesforce Summer ’20 release, this should be Generally Available in the Salesforce Winter ’21 release (i.e., towards the end of the year 2020).
...and did I mention that in the Summer ’20 release, Salesforce has also introduced dynamic actions. You can now choose which actions appear in the Highlights Panel on the object’s record page based on which condition.
References & Useful URLs
Break Up Your Record Details with Dynamic Forms - Salesforce Admins Blog (10 mins) - https://admin.salesforce.com/blog/2019/break-up-your-record-details-with-dynamic-forms
Be An Innovator with Dynamic Pages - Salesforce Admins YouTube Channel Playlist (Videos ranging from 8 to 15 minutes) - https://www.youtube.com/playlist?list=PLrC_ei2_Pv0H4oHaLTo_IgiGHXoVg7AYd