Add Gif to incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 05:29 AM - edited 04-23-2023 05:31 AM
#how to add gif background for incident form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 10:32 PM
Hi,
To add a GIF background for the incident form in ServiceNow, follow these steps:
- Navigate to the 'System UI > Themes' module in the ServiceNow instance.
- Select the 'Create Theme' option.
- Fill out the required fields, including 'Name' and 'Active'.
- In the 'CSS Variables' section, add the following code:
body {
background-image: url("https://yourgifurl.gif");
background-repeat: no-repeat;
background-size: cover;
}
Replace 'https://yourgifurl.gif' with the URL of the GIF you want to use as the background.
5. Save the theme.
Now, when you open an incident form, the background will be the GIF you specified in the theme.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 11:31 PM
Why do you want to add a background gif?
I guess you could try creating a onLoad client script on incident table and write the following script
function onLoad() {
document.body.style.backgroundImage = "url('your_URL_here')";
}
Then you need to make sure that you've set the "Isolated script" field to false. You can see it on the list view.
You can do some other manipulation to decide how the image is shown.
For example adding these would make it cover the whole page.
document.body.style.backgroundRepeat = "no-repeat";
document.body.style.backgroundSize = 'cover';
I doubt it's going to be too pretty though.
If you upload the image into your instance then you should be able to set the 'your_URL_here' as the file name rather than URL.