If user don't select check box field then abort submit button in catalog item in servicenow

Sameeksha M
Tera Contributor

If user don't select check box field then abort submit button with error message in catalog item in servicenow.

 

User should choose at least any one of these choices, if user do not select any of these checkbox then user should not able to submit request and error message should pop up.

SameekshaM_0-1675940946606.png

Please help me with this query.

Thanks in advance!

9 REPLIES 9

Community Alums
Not applicable

Hi Sameeksha,

 

Give a mandatory to the options field.

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Hi Priya,

 

User should be able to select any of the choices based on his requirement.

I cannot give mandatory to all check box, if I do, then user need to select all choices. 

Hence I need client script for this requirement. 

Community Alums
Not applicable

Hi @Sameeksha M,

 

Create a label before the checkboxes,

In the first checkbox variable check the selection required checkbox.

AnandMahajan_0-1676980471809.png

 

AnandMahajan_1-1676980555399.png

 

AnandMahajan_2-1676980580554.png

 

If this solves your problem, please mark this as correct.

 

Anand

ServiceNow Developer

 

Thanks for replying!

 

I tried this way also, but if I check on one box and not for other, I'll get notification to fill mandatory fields i,e other check box.