How to change the title of a checklist with DOM manipulation

k_47
Tera Contributor

I would like to know how to change the title of a checklist.
From what I have been able to find, OOTB does not currently provide this functionality.
I know that Servicenow does not recommend it,
I would like to change the title of the checklist with DOM manipulation.
Can someone please provide me with a Script for the modification?

checklist.png

2 ACCEPTED SOLUTIONS

Maik Skoddow
Tera Patron
Tera Patron

Hi

 

it is possible using a client script with the following JQuery selector code:

 

MaikSkoddow_0-1702884552321.png

Maik

View solution in original post

Tai Vu
Kilo Patron
Kilo Patron

Hi @k_47 

The Solution from Maik Skoddow should work. Just make sure the Isolate Script checkbox deactivated.

 

Isolate Script: New client scripts are run in strict mode, with direct DOM access disabled. Access to jQuery, prototype, and the window object are also disabled. To disable this on a per-script basis, configure this form and select the Isolate script check box. To disable this feature for all new globally-scoped client-side scripts set the system property glide.script.block.client.globals to false.

 

Cheers,

Tai Vu

View solution in original post

6 REPLIES 6

Tai Vu
Kilo Patron
Kilo Patron

Hi @k_47 

The Solution from Maik Skoddow should work. Just make sure the Isolate Script checkbox deactivated.

 

Isolate Script: New client scripts are run in strict mode, with direct DOM access disabled. Access to jQuery, prototype, and the window object are also disabled. To disable this on a per-script basis, configure this form and select the Isolate script check box. To disable this feature for all new globally-scoped client-side scripts set the system property glide.script.block.client.globals to false.

 

Cheers,

Tai Vu

k_47
Tera Contributor

Thank you to everyone who responded.
I was able to do it by setting Isolate Script checkbox deactivated in the script you mentioned.