Explore the community Forums Lectora Lectora Questions & Answers auto-select radio buttons? Reply To: auto-select radio buttons?

#425417 Score: 1
Profile photo of Brian Robertson
Brian Robertson
Member
beginner
intermediate
LUC16 Attendee
curious george
wise owl
contributor
profile
13 pts
@brobertson4402

Each radio button has an associated variable.  Use an action to modify the appropriate variable in the 2nd set of buttons when a button is selected from the first set.  Setting a radio button variable to ‘on’ (without quotes) selects it.  Setting a radio button variable to ‘off’ (without quotes0 deselects it.  You’ll need to add additional actions to handle all the possible scenarios of selecting a button in the first set and selecting/deselecting the appropriate buttons in the second set.   Also actions in the first set of buttons that deselect the other buttons in the first set when one is selected.

Test questions using radio buttons do this automatically.  You will need to do it manually if you are adding radio buttons to a page that are not part of a test question.

Hope this helps.

This post has received 1 vote up.