Cant override signin dialog on 3.14 api

3240
3
Jump to solution
09-14-2015 09:25 AM
JeffPace
MVP Alum

I am trying to override the signin dialog on the 3.14 api

If i set

esriBundle.identity.info = "Please sign in to access the item on ${server} ${resource}";

It works fine

if i change it to

esriBundle.identity.info = "${server} ${resource}";

It works fine and I see my changes (it shows only the server name and resource)

However I would like it to only say "Please sign in to access secure resources".  The server name is confusing to users

so if I change it to

esriBundle.identity.info = "Please sign in to access secure resources";

or if i remove either the server, or the resource reference i get

TypeError: a is null

error is on a.setAttribute from init.js

Help please

Kelly Hutchins

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

Jeff Pace​ I suspect the error is happening because we are trying to set those values when the dialog displays and if the placeholders (${}) are missing the error occurs. This is something you can submit as a bug to support to see about getting it fixed in a future release.

For now you can workaround it by setting the resource string to this:

        esriBundle.identity.info = "Please sign in to access secure resources ${server} ${resource}";

Then hide the div's for the server and resource info via css.

   .serverLink, .resLink{

      display:none;

    }

View solution in original post

3 Replies
KellyHutchins
Esri Frequent Contributor

Jeff Pace​ I suspect the error is happening because we are trying to set those values when the dialog displays and if the placeholders (${}) are missing the error occurs. This is something you can submit as a bug to support to see about getting it fixed in a future release.

For now you can workaround it by setting the resource string to this:

        esriBundle.identity.info = "Please sign in to access secure resources ${server} ${resource}";

Then hide the div's for the server and resource info via css.

   .serverLink, .resLink{

      display:none;

    }

JeffPace
MVP Alum

That workaround worked perfectly thank you.

Is it really a bug or just working as intended

0 Kudos
KellyHutchins
Esri Frequent Contributor

Turns out we have an existing enhancement request in the system to make this text configurable. No word yet on which version this will be added to so for now the workaround is the way to go.