- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:09 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:29 PM
Hi
it is possible using a client script with the following JQuery selector code:
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 12:07 AM - edited 12-18-2023 12:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:29 PM
Hi
it is possible using a client script with the following JQuery selector code:
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:54 PM
Thanks for your answer.
I created the following onload Client Script but it did not work.
Is the source code incorrect?
function onLoad() {
try {
jQuery('div.checklist_section h3').text('Test');
} catch (e) {}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 12:01 PM - edited 03-20-2024 12:04 PM
hi
I tried onload client script but its not working! can you please guide me? I checked all possible combination of UI Type and Isolate script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 05:56 PM
Hi.
Could you please try to update the checklist record in the message table.