Right now when there is a validation error on a field during a tab change, the error appears at the field and it’s hard for the user to know what they missed. I want to have the page scroll to the top so they will see the errors, but I’m having trouble seeing where to add the validation onFailed_actions in a wizard form. Ideally, I’d like to add it to the built in “Next” button in the wizard form.
For this you would need to run the
validate action yourself via a namedAction.
One nice way to scroll to the errors is via JS
a thrown error adds an error class into the DOM
Find the first instance of this and then use the scrollTo action to smooth scroll the browser to the error.
Sorry, we don’t have an example for this.