190 views

Symptoms


Mandatory attribute on a Label variable associated to Checkboxes does not get enforced and no */asterisk is displayed indicating that the label is mandatory 

Release


Jakarta and later releases

Cause


This is expected behavior and ServiceNow team has explicitly stated that the functionality was actually NOT working correctly in previous releases such as Helsinki where the Label variable was showing with an asterisk to indicate mandatory. The fact that red * was shown in Helsinki for Label variables was a wrong behavior, and it never supported a true mandatory check

Resolution


-- To make checkbox mandatory, instead of setting the label variable associated to the checkbox as mandatory, set any of the checkboxes as mandatory by setting checkbox variable as mandatory or using catalog UI Policy. For more information please see the doc link under Additional Information.
 
-- The workaround here would be to set one of the checkbox variables as mandatory and this should make all the checkboxes mandatory. 
 
-- After setting the first checkbox variable to mandatory, the system will display the mandatory asterisk as well as enforce mandatory in Service Catalog

Additional Information


-- Read about Service catalog UI policy and Types of service catalog variables: Check Box

-- Please note this resolution will only work in service catalog, it will not work in Service Portal. Please check this know error article about existing problem in portal:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0622371

Article Information

Last Updated:2018-08-28 10:14:14
Published:2018-08-28