AnsweredAssumed Answered

Define default Portal with Survey123 Template

Question asked by on Dec 14, 2018
Latest reply on Feb 13, 2020 by

I am attempting to edit the Survey123 Template in AppStudio. My goal is to customize the template so that when users press Sign In, they are redirected to our organizational ArcGIS Online enterprise login page.


This customization allows our field staff to avoid pressing "Enterprise Login" from the main ArcGIS Online page, then typing in our organization short name (smgov), and then pressing sign in with their enterprise credentials.


For example, instead of the default portal being "", I'd like the default portal to be ""


What's very strange is that I was actually able to accomplish this by editing the Portal.qml file. I changed kDefaultPortalUrl from to I was excited because this worked, at first. Now, when I ran the Survey123 Template and pressed sign in, our Enterprise portal sign-in came up by default (yay!). But then, it just stopped working. I don't know what happened but now the edited kDefaultPortalUrl variable no longer influences the application's behavior. 


Am I going about this the right way? How do I define the default Portal url?