AnsweredAssumed Answered

Define default Portal with Survey123 Template

Question asked by zach.robinson_sm.gov on Dec 14, 2018
Latest reply on Dec 14, 2018 by zach.robinson_sm.gov

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 "https://www.arcgis.com", I'd like the default portal to be "https://www.smgov.maps.arcgis.com"

 

What's very strange is that I was actually able to accomplish this by editing the Portal.qml file. I changed kDefaultPortalUrl from arcgis.com to smgov.maps.arcgis.com. 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?

Outcomes