let say here 2 input fields are empty and validations are applied (input can’t be empty and if this input’s value is invalid then show bg-red).
So my question is whenver i click a button to proceed i want that these input fields should be fill (compulsory) but the cursor is automatically focused to last empty input field , I want that the focus of cursor should start from top to bottom where fields are empty and not from bottom to top.
The set focus on input workflow action could be triggered via a workflow trigger of unhandled error occurs, which could be used with a condition to indicate which error. There are a list of errors in the settings tab, under language. This of course, could potentially work if you put the error for what the first input is, which would be email, but I do not expect it to work for what you are asking, which is the input value is empty.
You could try reaching out to Bubble support with this question to see if they have a real solution. Or you could also play around with the workflow error trigger to see if it works or not. Or also, play around with the order in which you added the inputs onto the page, as maybe that would change things.
One thing too though could be to use the set focus on input action as the first step in the series of actions you run for signing the user up and put a condition on that for ‘only when email is empty’ and set focus on the email, and have another for ‘only when password is empty’.
This topic was automatically closed after 70 days. New replies are no longer allowed.