Salesforce Fact #978 | Hide action button in screen flow

We can hide the screen flow action button based on component visibility.

Suppose we need to make sure the action button once clicked it should get hidden. It should be visible again once the user comes back from any previous or next screen.

For this, we can define a boolean variable in the subflow and also make use of the InProgress attribute of the screen action. These two values can be used in component visibility to show/hide the button.

At the start the boolean variable is null and the inProgress attribute is null if the action button has been called once and we come back to the screen from any previous/next screen.

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #245 | Enabling Case Assignment checkbox