Skip to main content
Known Participant
February 20, 2022
Answered

Need User to Only Check Yes or No Check Box

  • February 20, 2022
  • 2 replies
  • 540 views

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 has been closed for replies.
Correct answer ls_rbls

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?

2 replies

raypalmerAuthor
Known Participant
February 28, 2022

Thank you!

ls_rbls
Community Expert
Community Expert
February 28, 2022

You're welcome.

ls_rbls
Community Expert
ls_rblsCommunity ExpertCorrect answer
Community Expert
February 21, 2022

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?