Skip to main content

The Wizard component for classic apps

Classic apps

You're viewing documentation for classic apps, which use Retool's original app editor. The new app builder is the recommended way to build apps and where Retool focuses new development.

Wizard groups component into a series of steps that follow a linear path or branch into multiple ones. It supports running queries on step change or reset, virtual steps that display a loading screen, and setting the initial step dynamically.

Best practice

For more information about using the Form component, refer to the forms guide.

Properties​

All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

currentStep​

The generated ID for step.

Type string
Configurability Read-only
Defaultnull

customInitialStepName​

The customized name for the first step in the wizard.

Type string
Configurability Read-only
Defaultnull

hidden​

Whether this object is hidden from view.

Type boolean
Format True/False
Configurability Inspector > Appearance > Hidden
Defaultfalse
Examples
falsetrue

hideResetButton​

Whether to hide the reset button.

Type boolean
Configurability Read-only
Defaultnull

id​

The unique identifier (name).

Type string
Format Plain Text
Configurability Inspector
Defaultwizard1
Examples
falsequery1
falsebutton1

initialStep​

The generated ID for the first step in the wizard.

Type string
Configurability Read-only
Defaultnull

isHiddenOnDesktop​

Whether to show or hide this object in the desktop layout.

Type boolean
Format True/False
Configurability Inspector > Appearance > Advanced > Show on desktop
Defaultfalse
Examples
falsetrue

isHiddenOnMobile​

Whether to show or hide this object in the mobile layout.

Type boolean
Format True/False
Configurability Inspector > Appearance > Advanced > Show on mobile
Defaulttrue
Examples
falsetrue

maintainSpaceWhenHidden​

Whether to take up space on the canvas if hidden is true.

Type boolean
Format True/False
Configurability Inspector > Appearance > Advanced > Maintain space when hidden
Defaultfalse
Examples
falsetrue

margin​

The amount of margin to render outside.

Type string
Format Plain Text
Configurability Inspector > Spacing > Margin
Allowed Values
ValueUI OptionDescription
4px 8pxNormal

Normal margin.

0None

No margin.

Default4px 8px
Examples
false4px 8px

onReset​

The query to run when the Reset button is clicked.

Type string
Configurability Read-only
Defaultnull

onStepChange​

The query to run when users navigate between steps.

Type string
Configurability Read-only
Defaultnull

scroll​

Whether to use scroll navigation.

Type boolean
Configurability Read-only
Defaultnull

showInEditor​

Whether the component remains visible in the editor if hidden is true.

Type boolean
Format True/False
Configurability Inspector > Appearance > Advanced > Always show in edit mode
Defaultfalse
Examples
falsetrue

spinWhenChildrenAreFetching​

Whether to use a loading state if nested objects are fetching data.

Type boolean
Configurability Read-only
Defaultnull

steps​

A list of step names.

Type array
Array values string
Configurability Read-only
Defaultnull

style​

Custom style options.

Type object
Configurability Inspector > Appearance > style
Defaultnull

Methods​

JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.

wizard.focus()​

Set focus on the component.

Definition
wizard.focus()
Examples

Set focus on wizard.

wizard.focus();

wizard.reset()​

Reset all child inputs to default values or clears them if no default values are set.

Definition
wizard.reset()
Examples

Reset wizard.

wizard.reset();

wizard.setStepId()​

Set the current step ID.

Definition
wizard.setStepId(stepId)
Parameters

stepId​

The ID of the step.

Type string


Events​

Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.

EventDescription