Mandatory Checkbox With Red Asterisk

JDX7913
Tera Guru

I am trying to create multiple CheckBox under a Label and have the CheckBox Mandatory (i.e the user must select at least one CheckBox before submitting). Moreover, is it possible to have a red asterisk next to the label as well?  

I was able to get the mandatory CheckBox to work with this tutorial  however it does not have the red asterisk that I am looking for. 

I am looking for something like this:

find_real_file.png

On this:

find_real_file.png

 

Thank you for the help. 

1 ACCEPTED SOLUTION

So here are some screenshots...build 2 onChange Client Scripts.  This works in the ITIL service catalog, but the Service Portal doesn't seem to like it.  Looking at that now:

 

find_real_file.png

 

find_real_file.png

 

 

find_real_file.png

 

 

 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

View solution in original post

8 REPLIES 8

Vishal Khandve
Kilo Sage

check for below one

find_real_file.png

The problem with that is that it will put a red asterisk next to either "test_1" or "test_2". Or if I mark both with "selection required" then both would need to be checked before a user can submit. 

What I am looking for is a red asterisk next to "Test" then when a user either select "test_1" or "test_2" the red asterisk would either go away or turn grey.  

Wrap the checkboxes in a container and then create a UI policy that makes the container mandatory. That will enforce that one of the options is checked without requiring all of them. It should also put the asterisk next to the checkbox's header.

I just tried that and the UI policy does enforce the mandatory requirement on the check boxes, but still the red asterisk does not appear next to the label or the container start with display title enabled. 

Instead of check boxes, is there a way to use multiple choices instead? (I.E use multiple choices and allow the user to select more than one).