artoodetoo / formtowizard Goto Github PK
View Code? Open in Web Editor NEWTurn any webform into multi-step wizard with jQuery
License: MIT License
Turn any webform into multi-step wizard with jQuery
License: MIT License
Is there a way where 'goToStep' can validate field before run to the desired step ?
It work with 'PreviousStep' and 'NextStep' my field are validated and it doesn't continue if some field are not completed.
Any function/tips for that it will work will be much appreciated
Thanks in advance
If you use jQuery validation-engine as your validation library, and you add an ajax validation, it won't work because formToWizard doesn't wait for the ajax response to decide if it has to proceed or not to the next step.
I've got a remote validation rule on my form, however the wizard doesn't wait for that to return it's result before moving to the next page. Any suggestions on what to do?
`jQuery('#SignupForm').validate({
rules: {
email: {
required: true,
email: true,
remote: the_ajax_script.ajaxurl
}
},
errorPlacement: function (error, element) {
if (element.attr("name") == "email" && jQuery("#passwordpanel").is(":hidden")) {
jQuery("#passwordpanel").slideDown("slow");
} else {
error.insertAfter(element);
}
},
errorElement: 'em',
});`
It seems this won't work if "form" tag is remove or changed to "div".
I am trying to use this in .Net aspx file that uses a master page. Master page already has a "form" tag and it won't allow two form tags inside a page. If I leave it there, all wizard steps all show at once.
Also, as soon as I click inside an input field, I get JS error in jquery.validate file: "JavaScript runtime error: unable to get property 'settings' of undefined or null reference"; I am guessing because I removed "form" tag.
Has anyone used this in an aspx file and knows how to get around it?
NextStep: function() {
$( '.stepDetails:visible' ).find( options.nextBtnClass ).click();
},
PreviousStep: function() {
$( '.stepDetails:visible' ).find( options.prevBtnClass ).click();
}
I don't have time at this moment to do a PR.
Also, I was getting both steps showing when firing off "PreviousStep". So there could be more issues there.
I can try to do a PR soon if I find the time.
Is it possible to animate page changes? Maybe a sliding animation would be nice.
Thoughts on having the markup for button navigation be in HTML template or as a template string?
At a minimum, maybe have an option for the parent for the buttons to be appended into?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.