checkbox mandatory in widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 01:33 AM
Can anyone please help me on the below issue.
I have created one widget and in the widget i have created the checkboxes like the below.
I have created the variable "this request is" custom with lable type and attached the widget. Need to make mandatory the widget so that if anyone out of the four box is checked the request can be submitted or else the request will not get submit.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 01:37 AM
You have to make the first checkbox as mandatory, that will automatically ensure that at least one is checked before proceeding:
Follow below article:
How to make a group of checkboxes mandatory
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 01:40 AM
Hello Aman,
I have created the checkboxes in the widget.Need to make the variable mandatory in which the widget is attached.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 01:46 AM
One more relevant article :
https://servicenowguru.com/scripting/client-scripts-scripting/checkbox-variables-mandatory/
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 01:57 AM
Hi,
why to use widget for this and not select box for this?
You can then easily use onSubmit client script for the validation
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader