Select to view content in your preferred language

esriSignInDialog

2256
7
Jump to solution
02-13-2017 08:27 AM
LaurentDuruflé
Emerging Contributor

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
Frequent 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
Frequent 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é
Emerging Contributor

Hi Brandon,

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

Many thanks for the solution .

0 Kudos
MuglaCbs1
Emerging Contributor

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

0 Kudos
BrandonFlessner
Frequent Contributor

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

Shalineemishra
Emerging Contributor

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
Honored 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é
Emerging Contributor

Thanks Steve,

I have dig into this link: very very useful.

Thanks again.

0 Kudos