Skip to content

Questionnaire

Collect one answer per step and let people review their choices.

alpina-ui/interactive/questionnaire

Interactive preview

Which 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.

Keys
KeyAction
↑ / ↓Move through the answer options and select a radio.
SpaceSelect the focused answer.
Enter / SpaceActivate 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
Add to your project
npx --no-install alpina add questionnaire