esriSignInDialog

1938
7
Jump to solution
02-13-2017 08:27 AM
LaurentDuruflé
New Contributor II

Hello,

I am trying to customized the content of the dialogbox used by the IdentityManager (according IdentityManager | API Reference | ArcGIS API for JavaScript ) .

Is there any way to change (customize) the text "Please sign in to access the item ...." ?

0 Kudos
1 Solution

Accepted Solutions
BrandonFlessner
Occasional Contributor

Try this:

Customize the text if you want:

// identiy manager sign in content
  esri.bundle.identity.info = "Text Here. ${server} ${resource}"; // ${server} ${resource}" hidden via CSS

Hide links:

/* sign in dialog */
.serverLink{
  display: none;
}
.resLink{
  display: none;
}

View solution in original post

7 Replies
BrandonFlessner
Occasional Contributor

Try this:

Customize the text if you want:

// identiy manager sign in content
  esri.bundle.identity.info = "Text Here. ${server} ${resource}"; // ${server} ${resource}" hidden via CSS

Hide links:

/* sign in dialog */
.serverLink{
  display: none;
}
.resLink{
  display: none;
}
LaurentDuruflé
New Contributor II

Hi Brandon,

I have just tried what you suggested. It works perfectly !

Many thanks for the solution .

0 Kudos
MuglaCbs1
New Contributor II

hi, where to edit this code with arcgis server side.thanks

0 Kudos
BrandonFlessner
Occasional Contributor

This solution works by adding the code to your JavaScript and CSS, not by changing anything server side.

Shalineemishra
New Contributor II

Hi , I have similar problem in my WAB application. so please can you tell which .js file of web app builder to put it in?

0 Kudos
SteveCole
Frequent Contributor

It looks like this CAN be changed. Refer to this page in the documentation. Under the identity object, change the message for the info property. The default text for the info property is "Please sign in to access the item on ${server} ${resource}"

LaurentDuruflé
New Contributor II

Thanks Steve,

I have dig into this link: very very useful.

Thanks again.

0 Kudos