Hello,
I’ve attached a general example of what I’m trying to do. Click on the Submit button to see what it does.
111219_ErrorValidationScrollToHighest.rp (2.7 MB)
Overall, I’m trying to create form validation, where the page will scroll to the highest textfield that is blank, out of all blank textfields on the page. Right now, I have it so on click of the submit button it checks if any of the fields are empty and if so, it sets that field to an error state. I also have it scroll to that textfield if it’s empty. The problem is, it will run through every action and scroll to each one starting from top of the page to the bottom. I’m trying to get it to only scroll to the highest textfield/widget on the page out of all empty textfields/error states. Not to just scroll to every one, as that looks broken. It should only scroll to the top one that is in error state and stop scrolling.
I cannot figure this out after trying for a while. It’s as if the page has to know 2 states, if it’s an error state and where the highest field is on the page, out of all error states - then scroll to the highest one.
I searched high and low for anything like this and didn’t see anyone posting on it, or on Google Searching, unfortunately.
Any help on this would be greatly appreciated.
Jake