- 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
08-07-2017 08:30 AM
Hi Daniel,
Yes, I am seeing the same behavior for when you use a container with a title showing, but if you remove the title from showing it breaks and if you try use just a Label, the mandatory astrik never appears.
Thanks!
-Wesley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2017 03:26 PM
When I was messing around with the UI policy prior to finding the post I located (mentioned above), I couldn't quite get the mandatory to fire quite right, and it was due to my conditions on the UI policy.
In looking at Istanbul documentation for checkboxes, it looks like there is a "Required Checked" option for checkboxes that does some similar form validation. Might want to explore that, it looks to have been updated from the Helsinki documentation. Like I said, my dev instance is still on Helsinki so I cannot validate Istanbul, but that's where I'd start. Good luck!
Istanbul
Helsinki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2017 03:41 PM
Hi Daniel
BAM!!! U Da Man!
That makes it work, just selecting one of the "Required Checked" option boxes within the group makes the 'Label' fro the group become manadatory with the red astrik.
Thanks for finding this information.
-Wesley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2017 06:42 AM
You're welcome. I'm glad this was it, as I now know of at least one catalog item that will need to be validated during our next upgrade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2017 06:17 AM