Multi-Step Form Wizard
A multi-step form (form wizard) divides a long form into a sequence of smaller steps. In SurveyJS, you can implement this pattern either by defining multiple pages or by setting questionsOnPageMode to "questionPerPage". This configuration converts your form into a multi-step wizard where users navigate between steps (each representing a single question or a group of related questions) using Previous / Next buttons.
To build a form wizard in SurveyJS using question-per-page mode, follow these steps:
Enable question-per-page mode.
SetquestionsOnPageModeto"questionPerPage"on the survey model (or in JSON). The survey will display elements one at a time in their defined order.Organize the survey JSON schema.
In question-per-page mode, the survey advances through elements sequentially, regardless of how they are grouped into pages. To display multiple questions within a single step, group them in a panel. You do not need to create one page per step.(Optional) Add a progress indicator.
For longer forms, enable a progress bar to show completion status. TheprogressBarTypevalue"questions"is well suited to this pattern because each step corresponds to a single question.
Refer to the JSON listing for a complete example.