I have a scenario that based on few dependant picklist fields, the page layout/fields in the page layout gets changed. Is it possible to do it using any declarative method or dynamic forms or flows or LWC+Flows?

Help is much appreciated.

2 Answers 2


The obvious approach is to use Dynamic Forms which goes GA in Winter '21. Using this functionality you can conditionally show individual fields or field sections using "visibility rules".

You need to be careful to ensure that universally required (i.e. required at the schema level) fields are always visible.

Individual fields can be shown or not using a visibility rule that can use other fields' values, where the rule is evaluated when those other values change (the rules are applied "dynamically"). This isn't the case with field sections; their visibility is only updated on opening the form and after save. You can find more details here.

  • does it work for record creation using "New" button ?
    – SFDC IN
    Sep 24, 2020 at 13:58
  • Give it a try for yourself.
    – Phil W
    Oct 1, 2020 at 7:28
  • 1
    Yeah that works
    – SFDC IN
    Oct 1, 2020 at 7:33

Yeah this is possible. make a custom LWC comp, read the fields on the record with wire and render the data using getters for the conditional sections and a record form.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .