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 does not reflect on RITM and SCTASK even when checkboxes are selected.

saint
Tera Expert

Hi Experts,

 

I have wriiten a one line onload catalog client script to change a variable name of one of my variables from variable set. Since this change should be applied to single cat item, I'm nt touching the original label in the variable set.

 

Issue: Even after selecting 

Applies on Requested Items ✔️

Applies on Catalog Tasks ✔️

 

The label only chages on the portal form and not in the backend. I tried changing the isolate script option too, but it didn't work. 

Please help me to resolve this issue.

2 REPLIES 2

Hemanth M1
Giga Sage
Giga Sage

Hi @saint ,

 

Is this what your referring? - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0867606 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Akshay Bhaskar
Kilo Sage

Hello @saint

Were you able to figure out the underlying issue and fix it? I'm in a similar situation. I've changed the labels for some of my variables using an onLoad client script to accommodate the length constraints, and it works fine on the portal view, but the variables within the RITM don't seem to be overridden by the script. FYI, I have enabled those applied to checkboxes. 

Regards,
Akshay