Posts

Showing posts with the label field section

Salesforce Fact #843 | Adding parent field in field section in lightning app builder

Image
With the latest release, we can now add the related parent fields in the field section in lightning app builder. But regarding the level of access, if the user does not have access to the related parent field, that is not visible which is different from the formula field. In case of formula field, the value shows up even if the user does not have access. In this example, we have a field section where we have added one field from the app builder as the parent record field and the other one is a formula field. Both are fetching the related account industry. When the field access is not there for the user, the data is visible only in the formula field. Attached are the screenshots.

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

Image
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.