Salesforce Fact #830 | Making field readonly after record creation using field section

Suppose we want to keep a field editable only during the record creation, and once record is created it should be read only in the UI level(for non-admin users). Apart from validation rule, we can make use of field section in lightning app builder to implement the same.

In this example, the LeadSource field on opportunity is made read only once it is created by keeping two field instances with two different filters.

Note: Field section does not work for community.

Attached are the screenshots.






Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow