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
Solved! Go to Solution.
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;
}
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;
}
That workaround worked perfectly thank you.
Is it really a bug or just working as intended
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.