icon Wizard

With Wizard container, you can create a multiple-page form. You can add as many steps as you need.

Pagination is ideal when it comes to collecting a considerable amount of data from users. Braking a long form into multiple steps makes the form looks neater and more user-friendly.

The steps are outlined on top of the container, and you can add a description to each step. Thus users know how many steps are ahead and what kind of information they need to provide:

Wizard preview

Each form page is validated when a user goes to the next step. This way, when all pages of the form are completed, it avoids jumping between pages if something is missing or invalid.

This page contains a detailed description of the container properties and JavaScript samples that you can use with this container.

Wizard Container Properties

Here you can find properties specifically related to the Wizard container.


A unique identifier for the container.

Name property


The Name property allows to work with the container via JavaScript code, like this:

   //hide container
   fd.container('Wizard1').hidden = true;


The property defines the width of the container in pixels.

If left blank, the container takes up the entire available width in the current grid cell.

Width property


Allows you to choose the shape and appearanace of each step in the Wizard: Circle, Square, Tab. Default is circle.

Shape property

The options look like this:

  • Circle:

    Circle shape

  • Square:

    Square shape

  • Tab:

    Tab shape

Next text

The property defines the text of the Next button which switches users to the next step.

Next text property

Back text

The property defines the text of the Back button which switches users to the previous step.

Back text property

Finish text

The property defines the text of the Finish button which submits the form (by default).

Finish text property


This property holds JavaScript code of the Finish button. By default, the code is set to submit the form.

Finish code property

JavaScript framework

In this section, you can find basic examples of how to work with the containers using JavaScript.

If you are not familiar with the JavaScript framework, get started with the JavaScript basics.


The container is only accessible once the form is rendered, so all calls to the containers must be inside fd.rendered event:

    //hide the container
    fd.container('Container1').hidden = true;
    //show the container
    fd.container('Container1').hidden = false;

Get HTML element

Access HTML element inside the container.

//access container's HTML
var htmlcontainer = fd.container('Container1').$el;

Hide container

Hide a container from a user.

//hide container
fd.container('Container1').hidden = true;

//show container
fd.container('Container1').hidden = false;

Button text

Get or set text on the Back/Next/Finish buttons:

//returns string
var back = fd.container('Container1').backText;
var next = fd.container('Container1').nextText;
var finish = fd.container('Container1').finishText;

fd.container('Container1').backText = 'Return';
fd.container('Container1').nextText = 'Forward';
fd.container('Container1').finishText = 'Complete';


Property that holds the Shape of the UI icons, can be used to get it or set it.

If the value set is incorrect, shape reverts to Circle.

//returns string

fd.container('Container1').shape = 'circle';
fd.container('Container1').shape = 'square';
fd.container('Container1').shape = 'tab';


Reset the state of the Wizard, and bring user to the first step:

//resets the Wizard


The property holds steps of the wizard as an array of objects. Can be used to hide/show steps or change their order.

//get an array of steps

//switch places for steps 1 and 2
var tabs = fd.container('Container1').widget.tabs;
fd.container('Container1').widget.tabs = [tabs[1], tabs[0], tabs[2], tabs[3]];

Current step

Gets the index of the currently selected step:

//returns integer
var currentStepIndex = fd.container('Container1').widget.activeTabIndex;

Hide/show step

Hide a step based on condition. In this example, we hide Resolved step and show it only when the issue status is set to ‘Resolved’ using this code:

//store the step in a variable
var secondStep = fd.container('Container1').widget.tabs[1];

//hide the step by removing it
fd.container('Container1').widget.tabs.splice(1, 1);

//add the step back
fd.container('Container1').widget.tabs.splice(1, 0, secondStep);

Step titles

The property holds names of the steps of the wizard as an array of strings. Can be used to get/set step titles.

//returns array of strings

fd.container('Container1').steps = ['Step 1', 'Step 2', 'Step 3'];


Property that holds an array of Microsoft Fabric Icons for each step, can be used to get it or set them.

By default each step is represented by a number, but this can be changed.

//returns array of strings

fd.container('Container1').icons = ['BoxCheckmarkSolid', 'BoxAdditionSolid', 'BranchSearch'];

Open a step

This method opens a specific step. The step must be activated. Triggers validation.

//opens the second step

//opens next step
var currentStepIndex = fd.container('Container1').widget.activeTabIndex;
fd.container('Container1').widget.navigateToTab(currentStepIndex + 1);

Open a step without validation

This method navigates from one step to another. Doesn’t trigger validation.

//opens the third step

Allow switching between steps

By default, user can only go to steps which they’ve been to before, but this code makes all steps clickable and openable.

//make all steps clickable

Detect step change

An event that is triggered when a user switches between steps. Allows you to customize behavior on step change, for example, skip steps.

//detect change, and get the index of previous and current step
fd.container('Container1').widget.$on('on-change', function(prevIndex, newIndex) {
    alert('Previous step: ' + prevIndex);
    alert('Current step: ' + newIndex);

//skip the second step
fd.container('Container1').widget.$on('on-change', function(prevIndex, newIndex) {
    if (prevIndex === 0) {
        window.setTimeout(function() {
        }, 100);

Detect wizard finish

An event that is triggered on the Finish button click.

fd.container('Container1').widget.$on('on-complete', function() {
    alert('Wizard steps are completed!');