Bootstrap Wizard Examples: Step-by-Step Guide

Ruth Jul 09, 2026

Bootstrap, the popular open-source CSS framework, has revolutionized web development by providing a robust set of tools for creating responsive and mobile-first websites. One of its most powerful features is the Bootstrap Wizard, a multi-step form component that simplifies complex form processes. Let's delve into the world of Bootstrap wizards, exploring their benefits, and providing practical examples to help you harness their power.

Wizard
Wizard

Before we dive into the examples, let's briefly understand why Bootstrap wizards are so useful. They break down complex forms into manageable steps, guiding users through the process, and reducing form abandonment. Now, let's explore the Bootstrap Wizard in detail.

Bootstrap Wizard Templates
Bootstrap Wizard Templates

Getting Started with Bootstrap Wizards

To begin, you'll need to include Bootstrap and its dependencies in your project. You can use the CDN links provided by the official Bootstrap website or download the files and host them locally.

Bootstrap Tutorials: The Best of Azmind | AZMIND
Bootstrap Tutorials: The Best of Azmind | AZMIND

Once you've set up Bootstrap, you can start creating your multi-step form. The Bootstrap Wizard uses the nav and tab components to create the step navigation, and the tab-content to display the form content for each step.

Basic Bootstrap Wizard Example

Bootstrap 4 Modal Dialog Form-Wizard
Bootstrap 4 Modal Dialog Form-Wizard

Let's start with a simple example. We'll create a three-step form for user registration.

First, include the necessary Bootstrap classes and IDs in your HTML structure:

<div class="wizard">
  <div class="wizard-header">
    <nav>
      <div class="nav nav-tabs">
        <a href="#step1" class="nav-link active">Step 1</a>
        <a href="#step2" class="nav-link">Step 2</a>
        <a href="#step3" class="nav-link">Step 3</a>
      </div>
    </nav>
  </div>
  <div class="wizard-content">
    <div class="tab-content">
      <div class="tab-pane active" id="step1">
        <!-- Step 1 content here -->
      </div>
      <div class="tab-pane" id="step2">
        <!-- Step 2 content here -->
      </div>
      <div class="tab-pane" id="step3">
        <!-- Step 3 content here -->
      </div>
    </div>
  </div>
</div>

Next, add the JavaScript to make the tabs functional. You can use jQuery for this purpose:

How to Design a Magical Form Wizard
How to Design a Magical Form Wizard

<script>
  $(document).ready(function () {
    $('.wizard .nav-tabs a').click(function (e) {
      e.preventDefault();
      $(this).tab('show');
    });
  });
</script>

Customizing Bootstrap Wizards

Now that you have a basic understanding of Bootstrap wizards, let's explore some customization options. You can change the appearance of the wizard by modifying the CSS classes, such as .nav-tabs, .nav-link, and .tab-content.

For more advanced customization, you can use Bootstrap's customization tool (https://getbootstrap.com/docs/5.1/customize/) to generate a custom CSS file tailored to your project's needs.

Wizard UI Pattern: When to Use It and How to Get It Right
Wizard UI Pattern: When to Use It and How to Get It Right

Advanced Bootstrap Wizard Examples

Let's look at some more complex examples to illustrate the versatility of Bootstrap wizards.

30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
HTML Form Validation with Bootstrap
HTML Form Validation with Bootstrap
Halaman Tidak Ditemukan - 404
Halaman Tidak Ditemukan - 404
55 Best Free Bootstrap Registration Form Designs 2026 - Colorlib
55 Best Free Bootstrap Registration Form Designs 2026 - Colorlib
the pricing options page is shown in this screenshot
the pricing options page is shown in this screenshot
Best Free Bootstrap Login Forms » CSS Author
Best Free Bootstrap Login Forms » CSS Author
Bootstrap Wizard Tutorial: How To Add A New Step | AZMIND
Bootstrap Wizard Tutorial: How To Add A New Step | AZMIND
a screen shot of the login page for an email form on a purple and pink background
a screen shot of the login page for an email form on a purple and pink background
Wizard UI Concept - Taher Vohra
Wizard UI Concept - Taher Vohra
the application is being displayed in spanish
the application is being displayed in spanish
Simple Wizard Modal Plugin with jQuery and Bootstrap - Easy Wizard
Simple Wizard Modal Plugin with jQuery and Bootstrap - Easy Wizard
an image of a website page with the text'create your message '
an image of a website page with the text'create your message '
three different web pages with the same color scheme on each page, one is black and white
three different web pages with the same color scheme on each page, one is black and white
Create Step By Step Modal with jQuery and Bootstrap
Create Step By Step Modal with jQuery and Bootstrap
a screenshot of a website's dashboard showing the settings and options for each user
a screenshot of a website's dashboard showing the settings and options for each user
two pictures of women's boots and one has a wizard costume
two pictures of women's boots and one has a wizard costume
SaaS Wizard UI – Smart Onboarding Experience
SaaS Wizard UI – Smart Onboarding Experience
Bootstrap 5 popup form
Bootstrap 5 popup form
How to Design a Form Wizard
How to Design a Form Wizard
OOP.
OOP.

Bootstrap Wizard with Validation

In this example, we'll add form validation to our wizard using Bootstrap's built-in validation features. We'll use the is-valid and is-invalid classes to indicate valid and invalid input fields, respectively.

First, add the validation classes to your input fields:

<div class="form-group">
  <label for="username">Username</label>
  <input type="text" class="form-control" id="username" placeholder="Enter your username" required>
  <div class="invalid-feedback">Please provide a valid username.</div>
</div>

Next, add the following JavaScript code to enable the validation:

<script>
  $(document).ready(function () {
    $('.wizard .nav-tabs a').click(function (e) {
      e.preventDefault();
      $(this).tab('show');
    });

    // Enable form validation
    (function () {
      'use strict'

      // Fetch all the forms we want to apply custom Bootstrap validation styles to
      var forms = document.querySelectorAll('.needs-validation')

      // Loop over them and prevent submission
      Array.prototype.slice.call(forms)
        .forEach(function (form) {
          form.addEventListener('submit', function (event) {
            if (!form.checkValidity()) {
              event.preventDefault()
              event.stopPropagation()
            }

            form.classList.add('was-validated')
          }, false)
        })
    })()
  });
</script>

Bootstrap Wizard with Progress Bar

In this example, we'll add a progress bar to our wizard to provide users with visual feedback on their progress through the form.

First, add the progress bar to your HTML structure:

<div class="wizard-progress">
  <div class="progress">
    <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  </div>
</div>

Next, update the JavaScript code to calculate and update the progress bar's width as the user navigates through the steps:

<script>
  $(document).ready(function () {
    // ... (validation code)

    // Initialize progress bar
    var progressBar = $('.wizard-progress .progress-bar');
    var totalSteps = $('.wizard .nav-tabs li').length;
    var currentStep = 1;

    $('.wizard .nav-tabs a').click(function (e) {
      e.preventDefault();
      $(this).tab('show');

      // Update progress bar
      currentStep = $(this).parent().index() + 1;
      var progress = (currentStep / totalSteps) * 100;
      progressBar.css('width', progress + '%');
    });
  });
</script>

With these examples, you should now have a solid understanding of how to create and customize Bootstrap wizards. Whether you're building a simple multi-step form or a complex, feature-rich application, Bootstrap wizards provide a powerful and flexible tool for enhancing the user experience. So go ahead, start building, and watch as your users breeze through your forms with ease!