Message Boards Message Boards

Back

Collect all selected options from a checkbox group into a list and display

Threads [ Previous | Next ]
Toggle
I’m building an activity in SmartBuilder where learners select one or more items from a single Checkbox Group on Page 1 (for example, “Which of these tools do you use?”).

My goal is when the learner clicks a Continue button, the application gathers all of the currently selected options from that checkbox group and displays those selected options in a text object (for example, “You selected the following tools:” followed by a bulleted list of the chosen labels).
0 (0 Votes)

RE: Collect all selected options from a checkbox group into a list and disp
Answer
4/13/26 11:54 PM as a reply to Amanda Kissinger.
Hi Amanda,
Good question! The Checkbox can get the selected text, but the format might not be the most useful, depending on what your choice text is (whether or not it contains commas). You might need a for loop to collect the selected options in a list. Also, to populate the output, you'll likely need to use for loops for that as well. And if you want bullets, you'll want to use the Rich Text set formatted text with some simple HTML tags.

Here's a video that covers how to do this - https://share.smartbuilder.com/public/support/get-checkbox-selection-for-loops-html-text.mp4

Sample file and a picture of the code is attached.
0 (0 Votes)