We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Is it possible to change the table label dynamically?

sonimore101
Tera Contributor

On the Incident form, the header displays the table label ("Incident") along with the record's display value (for example, INC0010001). Is it possible to change the table label dynamically based on a condition? For example, if the Priority is 1, can the header display "Critical Incident" instead of "Incident"?

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron

Hi @sonimore101 

 

No that's not possible but what you can do create a onload client script and check is incident is P1 show Info message or use the field style to make priority field red or yellow if priority is P1.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

Hi @sonimore101 

 

No that's not possible but what you can do create a onload client script and check is incident is P1 show Info message or use the field style to make priority field red or yellow if priority is P1.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

Tanushree Maiti
Tera Patron

Hi @sonimore101 

 

Dynamic changes to the form header's table label are not supported OOB  in ServiceNow. The label is sourced from the table's global Dictionary definition.

 

Using Server script ( like BR) , you can display gs.addInfoMessage() post validation or you can use Field style to highlight  the priory field using a flag ( Like a VIP one) when the Priority is 1 to make it user's noticeable.

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti