How to make multiple "checkbox" variables mandatory.........

ID NOBLE
Tera Expert

Hello,

 

Please how can I make multiple "checkbox" variables mandatory on a request form. Basically, there are about 6 checkbox variables and each of them must equal to "TRUE" for the form to be submitted. If one or two of those checkbox are not checked, the system must not allow submission until they are all checked. How do I do this please?

 

Thanks in advance.

8 REPLIES 8

Hi @ID NOBLE ,

 

I encountered a similar scenario with one of my clients. To resolve it, I added a break variable between the checkboxes and set all the checkbox variables to “Selection required = true.” Alternatively, you could also do this required using a UI policy.

 

AfrithShariff_0-1759168855241.png

 

Mark this helpful if this solved your issue.

 

Thanks,

Afrith

Bhuvan
Mega Patron

@ID NOBLE 

 

Follow below knowledge article

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720517

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

svirkar420
Giga Guru

Hi @ID NOBLE , If the form needs to make all the checkboxes mandatory on the form then you can configure the variable itself to do so, by checking the "selection required" checkbox while configuring or creating the checkbox variable, do the same for all the variables you want to make mandatory.

svirkar420_1-1759166032159.png

This will make them all mandatory and form won't be submitted until choice are selected.

 

If this solution helps you Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.

Hi @svirkar420,

 

Thank you for your support. That was exactly what I did initially but it didn't work.