how to add new label on choice list.

Vinod S Patil
Tera Contributor

Hello Team,

I have requirement to add new label to the impact variable on incident form and list view also.
The new label should apply when the state is not equal to closed and resolved state.



Please suggest how to achieve this.
@Ankur Bawiskar 
@Dr Atul G- LNG 
@J Siva 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Vinod S Patil 

what do you mean by new label?

Are you saying the field label should be changes based on state value?

If yes then you can use onChange client script and this will work on form but not on list

g_form.setLabelOf('impact', 'my new label');

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

new label should be
1.Large
2.Moderate
3.Minor

This should apply for all the records excluding closed and resolved state incidents records.
Requirement is on both, form and list view.
we are renaming labels here but it should apply only incident table and also should not apply for closed and resolved incident records.

@Vinod S Patil 

on form you can use onLoad client script and check state value and change the label

But not on list

Please inform your customer about this limitation.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Vinod S Patil 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader