Skip to content
Nubgrammer
Menu
  • Home
  • Contact Me
Menu

Wizard

JQuery Wizard Plugin

This is going to be the project page for a jQuery plugin I’m working on.  It’s called Wizard.  Yea, so original, I know.

Designed to work specifically with Bootstrap, jQuery, and ASP.NET MVC, you can easily create a wizard-like experience that is submitted to your controller as a single view model that you can slice and dice any way you wish.

Image of Wizard Demo

Demo

Since WordPress doesn’t do so hot with hosted ASP.NET apps, here’s a better demo:

https://nubgrammer.com/wp-content/uploads/2018/03/Demo.mp4

And here’s the Github: https://github.com/vtsells/Wizard

You’ll find a full solution in there that shows how it’s all supposed to work together.  In short, the form is just a container for your input elements.  Each fieldset represents a step in the wizard.  The plugin will load different sets of input fields into each step by calling action methods in your controllers and then ajax-ing them into the proper place.  You’ll need partial views for each step that contain nothing but formatting and your input/select/validation markup.  Finally, the form will be submitted to a single action which can slice and dice the form data as desired.

Basic Setup

Put something like this where you want the form to be:

@using (Html.BeginForm("AddNewUser", "Home", FormMethod.Post, new { @class = "wizard-form"})) 
{  
    @Html.AntiForgeryToken(); 
    @Html.ValidationSummary(true, "", new { @class = "text-danger" }) 
    <div class="wizard-form-nav btn-group btn-group-justified"> 
    </div> 
    <div class="wizard-form-pages"> 
        <fieldset name="Create User" data-url="@Url.Action("UserWizard", "MUsers")"></fieldset> 
        <fieldset name="Add Applications" data-url="@Url.Action("ApplicationWizard", "MApplications")"></fieldset> 
        <fieldset name="Add Addresses" data-url="@Url.Action("AddressWizard", "MAddresses")"></fieldset> 
    </div> 
    <div class="wizard-form-controls btn-group btn-group-justified"> 
    </div> 
}

Then Initialize the form with:

<script> 
    $(document).ready(function () { 
        $(".wizard-form").Wizard({ 
            size: 500,  
            onSubmit: function (e, form) { 
                alert(form.serialize()); 
                //e.preventDefault(); 
                //alert("I was submitted"); 
            } 
        }); 
    }); 
</script>

I’m currently working on the nuget package and proper documentation.

Let me know what you think!

Follow me on Twitter

My Tweets

Github Repos

vtsells (Tyler Sells)

Tyler Sells

vtsells
http://www.nubgrammer.com
Joined on Jun 21, 2017
9 Public Repositories
100DaysOfCode
embers
MultiSelect
MVC-Project-Start
nubgrammer.com
PermIT
Spray
vtsells.github.io
Wizard
0 Public Gists

Categories

  • #100DaysOfCode (4)
  • ASP.NET (7)
  • ASP.NET Core (1)
  • ASP.NET MVC (3)
  • CSS (4)
  • General (13)
  • JS (3)
  • LESS (2)
  • Snippets (4)
  • Tools (4)
  • Tutorials (9)

Recent Posts

  • Creating a Knockout.js project on Codepen
  • 100DaysOfCode Day 3 – A State of Mind
  • 100DaysOfCode Day 2 – The Building Blocks
  • 100DaysOfCode Day 1 (Sort of cheated already)
  • Committing to #100DaysOfCode
© 2025 Nubgrammer | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT

Privacy Policy