Move to the Next Page Automatically
Auto-advance lets respondents move through a survey without clicking the Next button. This demo illustrates the behavior with a one-minute American history quiz that supports mouse, touch, and keyboard input. Keyboard hints, letter shortcuts, and automatic focus make auto-advance easier to use with a keyboard: respondents can see available actions, select answers by typing letters, and continue without manually focusing each new question.
Enable Auto-Advance
Set autoAdvanceEnabled to true to advance when the current page is answered and its answers pass validation. In question-per-page mode, the survey advances to the next question.
For the Radio Button Group questions used in this demo, clicking or tapping an answer triggers auto-advance. Keyboard users select an answer and press Enter to continue. After the final question, the survey submits the quiz results.
Display One Question at a Time
The quiz questions are defined on a single page in the survey JSON. Set questionsOnPageMode to "questionPerPage" to display each question on an individual screen.
A separate Start page contains the quiz instructions and a name field. The firstPageIsStartPage property makes this page appear before the quiz begins.
Hide Navigation Buttons
Since auto-advance handles navigation and quiz submission, you can hide the navigation buttons to simplify the interface and keep respondents focused on the questions. Disable the showNavigationButtons property for this.
To keep the Start Quiz button visible on the Start page, this demo disables the property in the onStarted event handler, after the quiz begins.
Enable Keyboard Shortcuts and Hints
Letter shortcuts display a letter code next to each choice. When a question has focus, respondents can type a code to select an answer, then press Enter to continue or submit the quiz. To enable these shortcuts, set choiceShortcutsEnabled to true.
Keyboard hints show the available keys, such as arrow keys for answer selection and Enter to continue or submit. To display them, enable the showKeyboardHints property.
You can also focus each question automatically as it appears, so respondents can use the keyboard immediately. To enable this feature, set autoFocusFirstQuestion to true.