change the variable set label names

hemantnh
Tera Expert

i want to update the fields labels in the catalogs

ex: instead of department, Dept

the  department one, i have already defied in the variable set

for one particular catalog i want to change the label 

find_real_file.png

4 REPLIES 4

amaradiswamy
Kilo Sage

You can create an onload client script and use g_form.setLabel() method.

Reference:

https://developer.servicenow.com/app.do#!/api_doc?v=london&id=r_MGF-setLabel_S_S

this code is working for the normal forms not for the catalog items 

Aaron Schmid
Tera Contributor

This post may help you...

 

http://www.servicenowguru.com/system-ui/ui-scripts-system-ui/modifying-label-form-fields-client-scripts/

 

 

Harsh Vardhan
Giga Patron

kindly have a look on below thread. 

 

https://community.servicenow.com/community?id=community_question&sys_id=395e4feddb9cdbc01dcaf3231f96...

 

if you dont want to use DOM then you can hide the variable for your item and create new one on item