Set Background image on form

alexcharleswort
Tera Expert

Hi Everyone,

I have a need to set my company's logo as a background on the form of a custom table. I'm not entirely sure where to begin with this one. I imagine doing something like this but not entirely sure where to put it? UI Script on the page? My attempts at that failed.

Any help would be greatly appreciated!

Thanks all!

1 ACCEPTED SOLUTION

Use this for background size



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.body.style.backgroundImage = "url('10Things02a_v2.png')";


document.body.style.backgroundSize = 'cover';


}


View solution in original post

9 REPLIES 9

Jaspal Singh
Mega Patron
Mega Patron

Hi Alex,



You may find link Background Image on form helpful.


ark6
Mega Guru

Try the below



1. Upload your logo in the system UI->images.


2. Write the below onload client script



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.body.style.backgroundImage = "url('10Things02a_v2.png')";


}


I was making this way more complicated. This worked, thank you!! The only issue now is that it is a repeating image, and I understand that is by default. Do you know the missing bit to make it stretch to the page?


Use this for background size



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.body.style.backgroundImage = "url('10Things02a_v2.png')";


document.body.style.backgroundSize = 'cover';


}