- 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-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-10-2023 07:59 AM
Thankyou!! It was helpful.