Salesforce Dynamic Forms


Writer & Blogger

Dynamic forms are one of the game-changer for the lightning platform. Now we can declaratively customize the section and the fields of the detailed section or create your customized section without any coding pattern and no need to create the multiple page layout.

One of the biggest advantages of the dynamic form is filter option on a section (will cover below). Even we can also filter the specific fields based on permission, record, user. The filter works on WHEN, WHOM and ON.

Dynamic Forms benefits you in these ways:

  • An instant upgrade from page layouts: Place fields and sections wherever you want with the help of Lightning App Builder.
  • Better page performance: Put fields and sections into Standard accordion components, tabs to significantly improve page load times.
  • Dynamic layouts: Use visibility rules to make fields and components appear based on criteria we choose.
  • Minimize the use of Page layout.

How to Work with Dynamic Forms

Enable the Dynamic Form: Go to Setup -> search Record page setting -> enable the dynamic form.

How to enable Dynamic Form

Look into the new section in the lightning app builder page. you will have a Field section in the left bar. This is the Option for Lightning Dynamic form.

Enable Fields for Dynamic form

We can add or experienced the dynamic form in two way

  1. By using the existing Record Detail Page or migrate a page.
  2. Adding the new layout.

Migrate a page

For existing record pages, you could start by dragging fields and sections, but there’s a much easier way. Open your page in the Lightning App Builder, click the Record Detail component, and you see a new area at the top of the Record Detail properties pane. Click on the Upgrade Now and follow the instruction add the layout and save.

Adding the New Layout

Drag and Drop the field section on the right side.

As we can see we can add the new custom fields form (My Section). we can even manage the layout with the column option. In this section, we can select the fields from the left panel.

We also have the filter option for the specific section. Filter helps to restrict access to the layout which is a big advantage of the dynamic form. The filter works in two way

  1. Apply filter to section
  2. Apply filter to fields
Dynamic Form Filter

A filter is categorized into three forms

  1. Record Fileds
  2. Device
  3. Advance: This restricts based on user, record, permission and Device.

We can also manage the field UI Behaviour in dynamic form.

UI Behaviour in dynamic form

Note: Fields can only be dropped inside a Field Section component.

Dynamic Form Quick Action

We can also add dynamic action. This also helps to render the action buttons based on the filter.


Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Reading

Applications of AI Agents in Various Industries

Applications of AI Agents in Various Industries

Artificial Intelligence (AI) is transforming industries across the globe, revolutionizing how businesses operate and deliver…

AI Agents vs. LLM Chatbots: Key Differences and Similarities

AI Agents vs. LLM Chatbots: Key Differences and Similarities

Artificial Intelligence (AI) has evolved tremendously over the past decade, branching into various specialized domains…

Understanding AI Agents: A Comprehensive Guide

Understanding AI Agents: A Comprehensive Guide

Artificial Intelligence (AI) is reshaping the world, from our daily lives to various industries. One…

Get in touch

Gurugram Office

Dehradun Office

Scroll to Top