We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This is an example implementation, you may require more checks:
ClientSideValidations.callbacks.form.fail = function($form, eventData) { const settings = $form[0].ClientSideValidations.settings; const wrapperErrorClass = settings.html_settings.wrapper_error_class; const $errorElement = $form.find(`.${wrapperErrorClass}`); if ($errorElement.length) { $('html').animate({ scrollTop: $errorElement.offset().top }); } };
There was an error while loading. Please reload this page.