Check box validation

Basina Akash
Tera Contributor

 Out of four check boxes at least one check box should be checked other wise the form should not be submitted.     

Any one help me out to perform this action. 

 

 

At least 1 value should be checked. If not then it doesn't allow to submit the request and message: "Please choose at least 1 application"

 

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Basina Akash 

 

Make that variable is mandatory and then it become will show error message.

or share some screen shot where you want to add.

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Amit Verma
Kilo Patron
Kilo Patron

Hi @Basina Akash 

 

To achieve your requirement, you can make use of an On-Submit client script. Please find a snip below for your reference :

 

AmitVerma_0-1703065812515.png

 

Here I have taken 2 checkboxes into consideration where both the checkboxes should be checked. In your case, please configure a client script like this for your catalog item, change the condition in the script to include OR instead of AND for all of your four checkboxes and let me know the results.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.