How to customizing login page in Servicenow

suryanarayana_p
Giga Contributor

Hi Team
How to customizing login page in Servicenow ,OOB Snow Login page is right said  But  We need to Change login section to center of the page

like find_real_file.png

1 ACCEPTED SOLUTION

Sagar Patro
Kilo Guru

Hi Surya,

 

I am guessing you are trying to modify the default login page instead of CMS pages. If CMS is the requirement, then above answers might help you. If you are trying to edit the default one then there is no direct way to do it. 

I played around with the instance looking into UI pages and UI macros for modifying the login page form but ended up nowhere. 

There is just one way to do it and that is a workaround and would not recommend unless really needed.

The approach needs a simple UI script:

Name it anything like "loginLoad"

//Check if you are on the login page, on then run it
if(window.location.href.toString().indexOf("welcome.do") > -1) 

{
	
	setTimeout(function() {
		var login_div = document.querySelectorAll("div.login");
		//alert(login_div.length);
		login_div[0].style.margin = "0px auto";
		login_div[0].style.marginTop = "30px";
	}, 150); //Set 150 to a bigger or smaller number based on the needs. 150 is the number of milli seconds after which the script runs.
	
}

 

RESULT

find_real_file.png

Good Luck!

Mark the answer Correct and Helpful if it was.

 

View solution in original post

6 REPLIES 6

@Davie 

Good point. We usually have automatic SSO redirections to third-party integrations like OKTA and DUO. Can you send me a screenshot of the login page with the link? I would like to see its location.

 

Hello Sagar,

We have integrated our SN instance with DUO.

However, we need to redirect user to Duo login page once a he/she tries to access SN instance.

We are not able to find any feasible approach for that.

Can you please guide me for the same?

 

Raj