Multi-Page validation error - doesn't switch to the tab with the error (v2024)

hi,
v2024.16

with JS validation, when there’s an error on a page (multi-page), and the user is on another page and submits from there… if an error occurs, the system doesn’t activate the tab with the error, so the user has to hunt the different tabs to see where the error is.

is this by design or can this be automated?

thanks

It should switch, make sure the page is not hidden/disabled. Press F12 in your browser to check for JavaScript error also.

thanks, yes you’re right, i did some testing, for 2 other required fields “name” and email address fields for example, it jumped back.

it looks like the issue is on a tab that only contains the password field, it doesn’t select this tab/fields for some reason. it displays the error message, but doesn’t display the fields

no errors to note in console.

You have “Confirm Password” field, so it is the registration page. The “Confirm Password” is virtual field (not existing in database) so there is no page number associated with it. Probably the JavaScript detected error in that field first so it cannot find the page to switch to. You may try add your page number by data attribute (e.g. data-page="1") to it by Startup Script.

thanks, this worked.

did a test in the debugger and added the attribute data-page=“1” to id=“c_password” and went the the 2nd page and tried to register, in which it now moved to page 1 and set focus to the password fields…