This repository was archived by the owner on Jun 11, 2026. It is now read-only.
Description Hi,
How can i add the domain to the userfield like we did before in our 2012 adfs onload.js like this:
if (typeof Login != 'undefined' ){
Login .submitLoginRequest = function () {
var u = new InputUtil ();
var e = new LoginErrors ();
var userName = document .getElementById (Login .userNameInput );
var password = document .getElementById (Login .passwordInput );
if (userName .value && !userName .value .match ('[@\\\\]' ))
{
**var userNameValue = 'contoso.com\\' + userName .value ;**
document .forms ['loginForm' ].UserName .value = userNameValue ;
}
if (!userName .value ) {
u .setError (userName , e .userNameFormatError );
return false ;
}
Where should i add this in the code for paginatedonload.js
var usernameInput = document .getElementById ("userNameInput" );
var passwordInput = document .getElementById ('passwordInput' );
if ( usernameInput && passwordInput )
{
var username = document .getElementById ('userNameArea' );
var passArea = document .getElementById ('passwordArea' );
var submitButton = document .getElementById ('submitButton' );
var submissionArea = document .getElementById ('submissionArea' );
var errorText = document .getElementById ('errorText' );
var errorDisplay = document .getElementById ('error' );
var workArea = document .getElementById ('workArea' );
var loginMessage = document .getElementById ('loginMessage' );
var originalLoginMessage = "" ;
var didLoadPasswordPageBefore = false ;Reactions are currently unavailable
Hi,
How can i add the domain to the userfield like we did before in our 2012 adfs onload.js like this:
Where should i add this in the code for paginatedonload.js