Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Label Change

Priya123
Tera Contributor

So i have a Due date ( field on a Table) , i just want to change the Label on the form not in the table. I know thats not possible but is there a chance?

2 ACCEPTED SOLUTIONS

Harsh_Deep
Giga Sage

Tai Vu
Kilo Patron

Hi @Priya123 

Let's try to set the Label using setLabelOf in Client Script.

Sample below.

 

TaiVu_8-1698165310919.png

TaiVu_9-1698165355027.png

 

function onLoad() {
   g_form.setLabelOf('short_description', 'Title of issue');
}

 

Let me know if it works for you.

 

Cheers,

Tai Vu

View solution in original post

3 REPLIES 3

Harsh_Deep
Giga Sage

Hello @Priya123 

 

Please go through with this link -

 

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

 

Mark helpful/correct if you found so.

Tai Vu
Kilo Patron

Hi @Priya123 

Let's try to set the Label using setLabelOf in Client Script.

Sample below.

 

TaiVu_8-1698165310919.png

TaiVu_9-1698165355027.png

 

function onLoad() {
   g_form.setLabelOf('short_description', 'Title of issue');
}

 

Let me know if it works for you.

 

Cheers,

Tai Vu

Priya123
Tera Contributor

This Works too ! Thank you @Tai Vu