You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Validation of requied input before moving to next page #37
Not sure why it doesn't validate the current page required, etc... entries prior to moving to next page? Is there a hook or something to enable this feature...otherwise this wizard is kind of just a novel concept, but doesn't help the user much?
Right now the event gets called on previous or cancel or click on menu item
on the left. I tweaked next function to trigger step next
On Sep 10, 2013 1:38 PM, "Dominic Barnes" notifications@github.com wrote:
The stepHide event is triggered when the next button is clicked,
cancelling that event causes the current step to remain active.
If you need help with some actual code, perhaps create a gist or something
and I can help you out better that way.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-24192430
.
Ok, I think I understand the problem now. You're saying that the validation is running regardless of whether next/previous is clicked, so if the form is invalid the user can't go back.
I think the ideal solution here is to include the indexes of the steps involved in the event handler arguments. Using this data, you can compare the indexes to see if we're going forward (next) or backward. (previous) I'll make sure to mention this issue number in the commit so it automatically shows up here.
Activity
dominicbarnes commentedon Jun 2, 2013
Validation is completely in your hands as a developer, so you can use any library you wish.
You can stop progression between steps by hooking into the events and using either
event.preventDefault();orreturn false;.dominicbarnes commentedon Jun 3, 2013
I'm working on a set of new examples, including one to demonstrate the use of the validation plugin in conjunction with jWizard.
That branch also includes a small bugfix via b7000d3 for step transitions.
usubhash commentedon Sep 10, 2013
you are validating on stepHide. How can I validate only on Next button click? I could not get events to work
dominicbarnes commentedon Sep 10, 2013
The
stephide(case-sensitive) event is triggered when the next button is clicked, cancelling that event causes the current step to remain active.If you need help with some actual code, perhaps create a gist or something and I can help you out better that way.
usubhash commentedon Sep 10, 2013
Right now the event gets called on previous or cancel or click on menu item
on the left. I tweaked next function to trigger step next
On Sep 10, 2013 1:38 PM, "Dominic Barnes" notifications@github.com wrote:
dominicbarnes commentedon Sep 10, 2013
So, are you saying there's some sort of bug? Can you post some code (either here or in a gist) to help clarify?
usubhash commentedon Sep 11, 2013
here is the gist: https://gist.github.com/anonymous/6518048
On Sep 10, 2013, at 1:38 PM, Dominic Barnes notifications@github.com wrote:
dominicbarnes commentedon Sep 11, 2013
Ok, I think I understand the problem now. You're saying that the validation is running regardless of whether next/previous is clicked, so if the form is invalid the user can't go back.
I think the ideal solution here is to include the indexes of the steps involved in the event handler arguments. Using this data, you can compare the indexes to see if we're going forward (next) or backward. (previous) I'll make sure to mention this issue number in the commit so it automatically shows up here.
achimha commentedon Feb 28, 2014
Is there a patch somewhere that allows me to differentiate between Previous and Next in the stephide event handler?