#84
Using checkboxes (arrays)
Data and Logic · Practitioner
What is this skill?
Using checkboxes involves understanding that multiple selections are stored as arrays in session data, and knowing how to check if specific values are included.
Why is it important?
- Multiple selections – Handle questions where users can select several options
- Array handling – Understand how to work with array data in Nunjucks
- Conditional logic – Check if a specific option was selected from many
- Summary pages – Display all selected options on check answers pages