- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2015 12:47 PM
I am trying to find a way to create a multiple choice check box, without using a label. I need to make the question mandatory, but by using a label and creating check boxes, mandatory does work correctly, and customer cannot submit the catalog item. Do I need to script this or is there any other solution??
From the Wiki:
Displays a label across the form. Use labels to separate questions into sections (example, left) or list check boxes in order under a label to create a question for which the user can select several options (example, check boxes). Mandatory and Read only UI policies don't apply to this variable type.
Creates a check box that may be selected or cleared. List check boxes in order under a label to create a multi-option question (as shown in the example).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017
08:52 AM
- last edited on
‎01-30-2024
05:27 PM
by
ServiceNow
Hi Denise, I had a similar scenario and came across your post and saw it was never answered (even after a couple of years). I believe I found the answer in another post that I hope satisfies the original requirement so that you and any others who come across this post will know how to make this work.
Catalog Item Sleight of Hand: Mandatory selection of Checkbox options without writing scripts
This posting describes how to create the label/checkbox options, and then also how to create the appropriate UI Policy to ensure the label/options are mandatory for one or more options to be selected.
A couple of things to note regarding this solution.
- It also works if you put a container start, container split and container end for your options if you prefer them to be on two columns
- Be sure when you are creating the UI policy, be sure that you are using AND, and not OR for the policy conditions
- I have validated this works as of Helsinki
Best part is, no script required Thanks Mike for the solution mike.pryor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017
08:52 AM
- last edited on
‎01-30-2024
05:27 PM
by
ServiceNow
Hi Denise, I had a similar scenario and came across your post and saw it was never answered (even after a couple of years). I believe I found the answer in another post that I hope satisfies the original requirement so that you and any others who come across this post will know how to make this work.
Catalog Item Sleight of Hand: Mandatory selection of Checkbox options without writing scripts
This posting describes how to create the label/checkbox options, and then also how to create the appropriate UI Policy to ensure the label/options are mandatory for one or more options to be selected.
A couple of things to note regarding this solution.
- It also works if you put a container start, container split and container end for your options if you prefer them to be on two columns
- Be sure when you are creating the UI policy, be sure that you are using AND, and not OR for the policy conditions
- I have validated this works as of Helsinki
Best part is, no script required Thanks Mike for the solution mike.pryor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 09:40 AM
Thank You Daniel, I did forget to go in and update this post. I finally figured it out, and I also run a client script to only show the check boxes when triggered. Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2017 09:48 AM
You're welcome!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2017 12:06 AM
Hi Daniel,
Wondering if you have noticed that this setup is no longer working in Instanbul? I tried it with no sucess, then I change the Label to a Container with Title checked and then it works great. Plus from somewhere (not sure where) the word "Options" in a smaller font is added below the Container title, but if I uncheck the Title all mandatory funtionality goes away. Then oddly, when I flip it back to a Label there is still no Mandatory red astrick on load, but if I select and unselect one of the options I get a gray Manadatory asktrick. Hoping you may have seen the same issue and have a correction or work around?
Thank you,
-Wesley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 07:23 AM
My apologies, I have not tested or validated with Istanbul, only on Helsinki. I still had this in my Dev instance (on Helsinki still), so here is my POC that I tested with prior to using elsewhere.
The word "Options" appear when you use a Label followed by the CheckBox items, and the CheckBox items are in a container (Start & End).
Hope this helps.
Thanks,
Daniel
Variables from Catalog test item, the container split in the middle is disabled, but could be enabled to push options 3 and 4 to a second column.
The Catalog UI Policy
Mandatory, then mandatory requirement is satisfied when combination of options are selected, then back to mandatory when options are cleared