Salesforce Fact #350 | Screen flow: setting default picklist value from custom label
Suppose we have a use case where we have a screen flow which is used by the users to create accounts. The account type field is also an input in the screen. Now, we want to enable users to create accounts only with a particular type for certain period of time. On the other hand, for certain period of time they would be able to select any type value from the available list of values.
So, we would like to make it configurable. We can achieve this using custom label and some component visibility option.
In this example, we have created a custom label for storing the account type picklist default value. When it is storing a value, the user can create account records with that particular type only. When this value is NULL, the user would be able to choose any value from the available list of values. We have used component visibility option accordingly.
Attached are the screenshots.
Comments
Post a Comment