function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eugenia PestelliEugenia Pestelli 

Hide Next/End screen flow buttons

Hi everyone. I created my screen flow with some fields, I have an address field, which I can't make mandatory, I then created a lightining component that shows a simple error message when this field is left blank. I have set the component a visibility, it will only appear when this field is empty. The point is that once this screen appears, there are the standard Back and Next buttons. Back is fine, because the user goes back and fills in the field, the problem is Next, which if the user clicks on it goes to the next step and ends the flow, despite the empty field. I tried hiding next, but even when the address field is filled in, the component is not shown, but neither is the next button, so the user can't do anything. So I was wondering if there was a way to hide the "next" button only under a certain condition (i.e. an empty field). Thank you
AshwiniAshwini (Salesforce Developers)