Add Gif to incident form

Prem33
Tera Contributor

#how to add gif background for incident form

 

3 REPLIES 3

Rahul Kumar17
Tera Guru

Hi,

To add a GIF background for the incident form in ServiceNow, follow these steps:

  1. Navigate to the 'System UI > Themes' module in the ServiceNow instance.
  2. Select the 'Create Theme' option.
  3. Fill out the required fields, including 'Name' and 'Active'.
  4. 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

 

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

##It didn't apply

Weird
Mega Sage

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.