Change field label dynamically on a List View

SSantacroce
Tera Contributor

Hello,

I'm writing an onLoad client script to change field labels on a table dynamically based on the current domain (since adding the domain field to the field labels table didn't really work) and I've used the 

"g_form.setLabelOf()" function to change the label on the form view of the record, and it works.
How can I do the same on a List view of the table, though?
 
1 ACCEPTED SOLUTION

No , that is also not feasible. Domain separation feature does not support that. 

At Record level you can display your data domain wise but dynamically column label change - Not Possible!

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

3 REPLIES 3

Tanushree Maiti
Kilo Sage

Hi SSantacroce

Dynamically changing a field label in a standard ServiceNow List View is not feasible as it is not supported by the ServiceNow platform.

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Thanks for the tip - is there anyway then to change the labels based on the domain? I was able to add the sys_domain field to the field labels table but they didn't actually change and sometimes adding a new label would replace an already existing one.

No , that is also not feasible. Domain separation feature does not support that. 

At Record level you can display your data domain wise but dynamically column label change - Not Possible!

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: