New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Acept Promise on return of "leaveStep" event. #47
Comments
Hi @albertoVieiraNeto |
@albertoVieiraNeto Did you manage to get this working with a Promise? |
Hi guys, I am REALLY keen to see this implemented; I am attempting to get SmartWizard working with AJAX, & none of the suggested workarounds are able to do what I need. I am willing to discuss paying you for your time to get this sorted - please feel free to reach out to me |
I am using SmartWizard in an ASP .Net core MVC application, & want to use View Components (like partial views) and AJAX for each step in my wizard. In order to do server side validation, AJAX is required to return validation events (e.g. if form doesnt validate, AJAX function returns validation messages, & does not allow you to move to next step; if successful, move to next step |
Thank you again @albertoVieiraNeto for the suggestion, this is implemented in the new version of jQuery Smart Wizard v5 #87 The ajax content can be loaded via an event Read more about the implementation http://techlaboratory.net/jquery-smartwizard#ajax_contents |
How about "LeaveStep" does that support promises? I have the same problem as @michaelpev as I need to do server side validation and bring back the results. If validation fails I don't want to leave that step. If I do this validation in "StepContent" the wizard has already visually moved to the next step which I don't want. |
hi.
I think the plugin is awsome, but there still some points of inprovement. for example i would like to be able to have the ability to return a jquery promise or a native promise on the leaveStep event:
Can i make the necessary modifications and make a pull-request?
currently i'm using something similar to this: #20
Example:
The text was updated successfully, but these errors were encountered: