Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Mandatory Asterisk on Variable Label not appearing in Service Portal

cpuente
ServiceNow Employee
ServiceNow Employee

I need to make the mandatory indicator appear on a variable label in service catalog.   I have already tried a UI policy action, catalog client script, and enabling the mandatory setting on the variable itself.   A catalog client script is the only way I am able to get the indicator to appear in service catalog but it does not appear in service portal.   Has anyone else had this issue?

Client Script:

function onLoad() {

g_form.setMandatory('variables.please_select_test_environment',true);

}

Service Catalog Item:

find_real_file.png

Service Portal:

find_real_file.png

5 REPLIES 5

yeah, it's problem in Portal . Didn't see any solution to get Mandatory Asterisk to show as mandatory. You have to use script to just give mandatory alert.