- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 11:18 PM
I'm trying to hide the change the background color of the 'Submit' button when the incident form loads by using 'onLoad' client script. I'm using DOM manipulation but it's not working at all!!
Here's the code that i've written and i'm attaching an image to acknowledge the id of the button as well :
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:51 AM
@moni170 I updated your script slightly and managed to get it working on my instance. Here is the updated script.
function onLoad() {
var save = this.document.getElementById('sysverb_insert');
if(save)
{
save.style.background = 'green';
save.style.color = 'white';
}
}
Also make sure to UNCHECK Isolate Script checkbox.
Here is how your onLoad script form should look.
Here is the end result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 11:36 PM
Hello @moni170 , DOM is disabled as shown in the info message above when creating a client script. It is also not advisable to disable this one due to issues in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 12:49 AM
I tried isolate script field to make it work but still not working?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 11:43 PM
Please set Isolate "Script" form field to true to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 12:48 AM