Hi,
Is there a way to add an offset of xx px to the error messages?
I have a sticky header, so the validation scrolls to the first error (as it should be), but it is behind my header.
I tried to add the following code in the 'Setup'-tab, in the 'fail' section of 'Validation Fields', above the "Event loader".
I'm using "v6 classic mode", "AJAX submit" is yes.
How can I make this code work?
Thx in advance,
Aram
Is there a way to add an offset of xx px to the error messages?
I have a sticky header, so the validation scrolls to the first error (as it should be), but it is behind my header.
I tried to add the following code in the 'Setup'-tab, in the 'fail' section of 'Validation Fields', above the "Event loader".
jQuery( document ).ready(function($) {But that did not work.
$('html,body').animate({
scrollTop: $(".error").offset().top - 300
}, 1000);
});
I'm using "v6 classic mode", "AJAX submit" is yes.
How can I make this code work?
Thx in advance,
Aram