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 ...." ?
Try this:
Customize the text if you want:
<SPAN class="comment token">// identiy manager sign in content</SPAN> esri<SPAN class="punctuation token">.</SPAN>bundle<SPAN class="punctuation token">.</SPAN>identity<SPAN class="punctuation token">.</SPAN>info <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Text Here. ${server} ${resource}"</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="comment token">// ${server} ${resource}" hidden via CSS</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
Hide links:
<SPAN class="comment token">/* sign in dialog */</SPAN> <SPAN class="selector token">.serverLink</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="property token">display</SPAN><SPAN class="punctuation token">:</SPAN> none<SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="selector token">.resLink</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="property token">display</SPAN><SPAN class="punctuation token">:</SPAN> none<SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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?
This solution works by adding the code to your JavaScript and CSS, not by changing anything server side.
hi, where to edit this code with arcgis server side.thanks
Thanks Steve,
I have dig into this link: very very useful.
Thanks again.
Hi Brandon,
I have just tried what you suggested. It works perfectly !
Many thanks for the solution .
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}"
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.