Make a selection mandatory for atleast one checkbox to be selected on a form with alert if nothing selected

Terry Carter Jr
Tera Contributor

Hello everyone!

I need some assistance today.  I have a custom application (IBM Resilient Integration) that I built out for my security response team and they would like to have a modification done to the checkboxes.  Yes, I have already approached them to use select boxes for the selections since it would be easier but they want the users to have to opportunity to select one or more checkbox while making a selection mandatory with an alert if nothing is selected.  

Below are the checkboxes that I'm using:

find_real_file.png

Any guidance or help is greatly appreciated!

Thanks,

Terry 

1 ACCEPTED SOLUTION

Yes, understood the problem.

The earlier code returns error when atleast one of them is false.

so instead of || use && and then it will fire only if all of those are unchecked.

View solution in original post

31 REPLIES 31

Albert Chan
Mega Expert

So you're only interested if 1 or more of those check boxes are checked? You could use an on submit BR to check if none of those boxes are checked.

 

Albert,

Yes, they want to make sure that atleast one selection is made, that this is mandatory, and that it alerts them to make a selection if they haven't on submit.  

Thanks,

Terry

asifnoor
Kilo Patron

Is this 1 chckbox field with multiple values or differnet checkbox fields?

No, those are the only selections and there is nothing else that will show if you make one of the selections. ie Additional fields.

These are the only checkboxes on the form.

Hope this answers your question.