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.

g_form.setLabelOf() is not taking effect on Servicenow Instance

Karthick PS
Tera Contributor

Team,

g_form.setLabelOf() is not taking effect on Servicenow Instance, but working on ServicePortal.

Is there any way to make it working on Instance too?

Please help..

3 REPLIES 3

Carlos Candano
Mega Guru

That should also work in native UI. Could you check the UI type? Make sure it is set to All.

Karthick PS
Tera Contributor

Yes. Run Scripts in UI type is set to "ALL".

But, still the same. Is it because of browser issue?

What kind of variable are you trying to set the label of? Have you tried running an alert or console log just to check if the code goes there?

EDIT:

Based on the API, it's not supported on the Service Catalog setLabelOf