jpillora / verifyjs

Verify.js - A powerful, customizable asynchronous validation library
http://verifyjs.jpillora.com/
161 stars 61 forks source link

Scroll to Error #8

Open stemo40 opened 10 years ago

stemo40 commented 10 years ago

Hi,

I haven't had any luck getting the scroll to error feature to work. I have a very long form so when the user clicks on submit it seems like nothing happens. However, I was able to use the track feature to notify the user at the bottom of the form that there was an error:

$.verify({ track: function(type, fieldId, result) { if(result!="Valid"){ $("#anyerror").notify("Mistakes were found! Please review the form, correct any errors and re-submit.", {arrowShow:false}); } } });

I really love this library, but there seems to be a few bugs in it.

blazeworx commented 10 years ago

+1

I have the same issue, the library works very well for what I need it for but it doesn't scroll to the error.

zdziczkowski commented 9 years ago

I also have experienced this issue as well. Using rails 4.0, ruby 2.0.0. Thanks @stemo40 for the track suggestion.

pensierinmusica commented 9 years ago

+1

Same problem here: scroll and focusFirstField options don't seem to work.

wyderkat commented 9 years ago

+1

The code is commented out. When uncomment, it falls into some loop and doesn't stop scrolling. Scrolls in a loop between every missing field. I think it's hard to fix it.