This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clientSideValidations.callbacks.form.fail = function(form, eventData) { | |
$.scrollTo('.error', 500, {offset:{left:0,top:-25}} ); | |
}; |
Hello!
ReplyDeleteI'm very new to web development and this gem seems super useful but I'm confused as how to utilize the ClientSideValidations.callbacks.form.fail and link it up to the submit button. My design was to block submission until all errors are removed and it sounds like thats what you had in mind to. Thank you!
*too
Delete