Nest Content Within Choice Options
You can nest follow-up questions or panels inside individual options of the Checkboxes and Radio Button Group questions. This layout is useful when certain answer choices require additional input from the respondent. For example, selecting "Music events" can display a follow-up question asking which genres or venues the respondent prefers. This demo illustrates how to implement such a nested layout.
Each choice item in Checkboxes and Radio Button Group questions supports an elements
array. You can define questions and panels within this array, and they will appear dynamically when the user selects the corresponding choice.
Nesting is not limited to a single level. Nested Checkboxes or Radio Button Group questions can, in turn, contain their own nested elements. Refer to the survey JSON schema in the Code tab for an implementation example.