How to make label field mandatory for a catalog form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 02:03 AM
Hi,
We have a requirement to create the Label Variable and there are multiple checkboxes under it.
The requirement is to make the label as mandatory instead of each checkbox. If any of the checkbox is checked, the label will become non-mandatory.
Below is the label and checkbox fields:
I have created UI Policy to make 1st checkbox as mandatory
When I am trying to select other checkbox in the form, the label is still mandatory:
It is not working.
Please help with your suggestions.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 02:15 AM
Hi @User205031
Why do you want to make the label mandatory? Labels don’t hold any value, and users can simply skip them.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 02:28 AM
Labels cannot be made mandatory as they are not input field
check this link for workaround
How to make label field mandatory-catalog form.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 03:05 AM
it has worked as per the link I shared above.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 04:32 AM - edited 03-25-2025 04:43 AM
Hi @User205031 ,
I think catalog client script works in this case, But I'm not sure whether we can make the label mandatory.
You can use an On Load Catalog Client Script. You have 2 variables(two check boxes), capture the response of these check boxes in an array and check if any one value is true using a for loop. If any one of the response is true try to make the label mandatory.
Hope this help, If yes please mark it correct.
Thanks.