stepy icon indicating copy to clipboard operation
stepy copied to clipboard

No jump back to invalid step when submitting form

Open visicode opened this issue 12 years ago • 1 comments

When submitting a form containing invalid fields in previous steps, plugin will not jump back to bad step, like back and next buttons do!

This situation can occur when a field is under Ajax checking, so answer is delayed.

visicode avatar Sep 29 '12 07:09 visicode

When you get back from ajax and there are validation errors that you think are server side and ajax is returning if there is an error or success then get a variable back from server telling you which step to goto. Then on completion simply call this (assuming your step is i = 2) $('#myselector').stepy("step",i);

this will take you to step 2

farrukhsubhani avatar Apr 17 '13 03:04 farrukhsubhani