How do you change a variables label. g_form.setLabel only works on the field label

Diana27
Tera Guru

Hi,

I changed a form label using g_form.setLabel.  I need that change to be reflected on the RITM also.  When the variable displays on the RITM it is using the original label.  How do I get the variable label to also change on the RITM when I change it on the form?

I am new to serviceNow. I've looked through all the posts and I have not been able to get anything to work.  

Thank you,

Diana

5 REPLIES 5

Alp Utku
Mega Sage

can you make sure to check "Applies on Requested Items" checkbox on your script?

find_real_file.png

Hi Alp,

Thank you for responding.  I have that checked.  My issue is that in the portal it shows correctly but when I open up the RITM  record in the UI it shows the original variable name.

Portal view

find_real_file.png

RITM view

find_real_file.png

Not sure what I am doing wrong.

Thank you,

Diana

Can you also make sure UI Type is set to All on your script?

The UI type is also set to All.