For this type of project, you can use the Survey template (view code in the sandbox). It has pre-configured validation and task layout.

Components used in the example

Group questions together

Ways to group questions:

Use the component to put a frame around a group of questions.

View example

Add buttons and dependent answer options

The helper.switch component displays an interface element after a specific response is selected. In the example, clicking one of the buttons opens a list of options.

View example