Posts

Showing posts with the label navigate

Salesforce Fact #988 | Disable radio button on screen navigate

Image
Suppose we have a requirement that a radio button needs to be selected by the user in the current screen. Once the user moves previous/next from the current screen, it should get disabled. We can implement this using screen action and bit of condition logic. We can add condition to make sure the screen action autolaunched flow is called only once. And we can create a formula resource to check the InProgress and IsSuccess property of the action button which is used in the disabled attribute of the radio buttons. Attached are the screenshots.

Salesforce Fact #762 | Navigate to next screen on checkbox select

Image
Suppose we have a scenario in screen flow where the user can navigate to the next screen only if a checkbox is checked like the terms and conditions checkbox. The next button would be disabled and once the user selects the checkbox, it will get enabled. We can implement the same using an LWC. Attached are the screenshots. Note: The reactive beta feature setting needs to be enabled to pass the data from screen flow to LWC.