Questionnaire
Collect one answer per step and let people review their choices.
alpina-ui/interactive/questionnaireWhich collection would you like to consult?
Usage notes
An empty questionnaire can display a localized message. If a previous answer becomes unavailable before submission, the user returns to that question with the other answers intact.
When to use
Guide someone through a sequence of short questions with one answer due at each step.
When to avoid
Show a single form when people need to compare and revise several answers together.
Accessibility
Give the questionnaire a distinct name. On step changes, verify focus reaches the new question and earlier answers survive Back.
| Key | Action |
|---|---|
| ↑ / ↓ | Move through the answer options and select a radio. |
| Space | Select the focused answer. |
| Enter / Space | Activate Next, Back, Submit or Edit answers. Focus follows the current question. |
Content
Ask one direct question per step. Use complete choices that still make sense when read without their neighbours.
- Use
- How should we contact you? Email / Phone
- Avoid
- Communication channel preference configuration?
Copy in four languages
- German
- Wie dürfen wir Sie kontaktieren?32 characters
- French
- Comment vous contacter ?24 characters
- Italian
- Come possiamo contattarla?26 characters
- Romansh
- Co pudain nus contactar Vus?28 characters
npx --no-install alpina add questionnaire