Skip to main content
Known Participant
Feb 20, 2022 6:34 PM UTC
Answered

Need User to Only Check Yes or No Check Box

I have a row of "Yes" checkboxes numbered 1 through 58 and a row of " No" checkboxes 59 through 116; they currently have a 2 Text Boxs at the end with a JS in each column to calculate the total of all yes and all no. I realized you could check both yes and no boxes for each question asked. How do I set up the form to check yes or no and keep the JS to calculate each column?

This topic is closed to new replies. Start a new post to keep the conversation going.
ls_rbls
ls_rblsCorrect answer
Community Expert
Feb 21, 2022 3:13 AM UTC

You may need to make these checkboxes mutually exclusive, that is, assign the same field name for each pair of checkboxes (yes and no  checkboxes) but assign a different export value to each one.

 

 

For example, if I understood your intended workflow correctly, let's say that  you have ten boxes ( 1 through 10 ).

 

I would create 10 pairs of radio buttons instead of checkbox objects which will avoid users checking both yes and no simultaneously.

 

Each pair would be named: rb.1, rb.2, rb.3, etc.

 

Since radio buttons objects are intended to be used in pairs, rb.1 group will consist oftwo radio buttons with the same name.

 

To make them mutually exclusive one radio button must have "yes" as the export value and the other one "no".

 

This way, when  the user ticks rb.1  under the column of "yes" radio buttons, the rb.1 checkbox with export value of "no" will not be checked.

 

Is this what you are inquiring about?

Technical Generalist

3 replies

raypalmerAuthor
Known Participant
Feb 28, 2022 1:41 PM UTC

Thank you!

Translate
ls_rbls
Community Expert
Community Expert
Feb 28, 2022 4:23 PM UTC

You're welcome.

Translate
Technical Generalist
ls_rbls
Community Expert
ls_rblsCommunity ExpertCorrect answer
Community Expert
Feb 21, 2022 3:13 AM UTC

You may need to make these checkboxes mutually exclusive, that is, assign the same field name for each pair of checkboxes (yes and no  checkboxes) but assign a different export value to each one.

 

 

For example, if I understood your intended workflow correctly, let's say that  you have ten boxes ( 1 through 10 ).

 

I would create 10 pairs of radio buttons instead of checkbox objects which will avoid users checking both yes and no simultaneously.

 

Each pair would be named: rb.1, rb.2, rb.3, etc.

 

Since radio buttons objects are intended to be used in pairs, rb.1 group will consist oftwo radio buttons with the same name.

 

To make them mutually exclusive one radio button must have "yes" as the export value and the other one "no".

 

This way, when  the user ticks rb.1  under the column of "yes" radio buttons, the rb.1 checkbox with export value of "no" will not be checked.

 

Is this what you are inquiring about?

Translate
Technical Generalist