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, in example if a navbar is present or if the layout is different:
ClientSideValidations.callbacks.form.fail = function($form, eventData) { const settings = $form[0].ClientSideValidations.settings; const $errorElement = $form.find(`.${settings.html_settings.wrapper_error_class}`); if ($errorElement.length) { $('html').animate({ scrollTop: $errorElement.offset().top }); } };
There was an error while loading. Please reload this page.