Need help please.
I have researched online and in this Esri Community, and have attempted many possible solutions with no luck. Here is my issue in a nutshell:
I created a Survey123 with Web Designer which has a map and singleline text question (like geopoint in Connect without the pulldata) that is linked to a Web Map with a Popup that has a Link to the S123 Form just created. All is good when opening in a desktop app 🙂
arcgis-survey123://?itemID=xyzx&portalURL=https://portal.xyzx&field:fieldname={attribute}
It returns the attribute (which does have EncodeURL in an Arcade expression due to underscore in attribute name.)
---
HOWEVER, it does NOT return that attribute IF opened in a Browser and just gives the "suppose to be automatically populated text from attribute clicked in map like the desktop app does" as a Blank Text question that still Needs to be populated. I believe I am using the correct link:
https://survey123.arcgis.com/share/xxxitemIDxxx?portalUrl=https://portal.maranaaz.gov/portal.xyzx&field:fieldname={attribute}
[along with the correct ? and then & for the parameters.]
Help please!
Thank you in advance!
-T
P.S. I have double checked to ensure all feature layers, web maps, REST services via Server Manager and more are shared with Everyone. I have copied link into several Browsers including Firefox with no luck; I do see the Survey123 Form but the question that IS populated in App is NOT in Browser. Any help would be great!
Solved! Go to Solution.
I did a generic test on a web survey, "portalURL" worked and "portalUrl" didn't work.
More info, just so you know...
Popup in Web Map
(DESKTOP APP)
arcgis-survey123://?itemID=072xxx57e&portalUrl=https://portal.xyz/portal&field:click_on_a_storm_culvert={expression/expr0}
(FIELD APP)
(BROWSER – and only returns the S123 Form WITHOUT automatically returning the Attribute, like the APPs do without any issues.)
The Arcade Expression 0 takes care of the special character (underscore) used in the field attribute “column” name with a EncodeUrl to remove the “20%” for spaces. All good there.
APPs
BROWSER
Our S123 and data is in an on-prem server (so the portal is needed), and I changed with ?/&’s as needed. And checked that it is all Shared with Everyone (all FLs, etc.) I am at a loss now.
Yep. It works the same. Also attempting without the &field: and it is the same. Also attempted on several browsers and with clearing cache and private/incognito mode, and way too many other things. Also been since Friday on this one so on different days as well. No luck. I so want workers to be able to open in a browser without downloading or logging into an App. Thanks for such a quick reply!
Longshot here: Documentation says "portalUrl" but your working one for the field app is "portalURL". Did you try that?
I was excited there for a moment. LOL. I checked and all have the "portalUrl" which is copied exactly from the Collaborate tab in Web Designer (just to be sure) and I changed it as-needed for the app vs. browser addresses. No luck still. Ugg. I have double-checked ? and & and case-sensitive and nothing. I would like to keep it in Web Designer but can go back to Connect if it works from there. IDK.
I did a generic test on a web survey, "portalURL" worked and "portalUrl" didn't work.
Hmm...so when I change it to portalURL (in caps) it makes me log into our portal (Enterprise portal BTW) and then gives a login error. When I leave it in portalUrl (as documentation and as link in S123 Web Designer has it) it opens the Form in a browser but does not automatically fill the singleline text with Cart_ID as it does in the App ones. I am a bit frustrated at this point. Thanks for all your suggestions though! And I am here if you have more. 🙂
More info, just so you know...
Popup in Web Map
(DESKTOP APP)
arcgis-survey123://?itemID=072xxx57e&portalUrl=https://portal.xyz/portal&field:click_on_a_storm_culvert={expression/expr0}
(FIELD APP)
(BROWSER – and only returns the S123 Form WITHOUT automatically returning the Attribute, like the APPs do without any issues.)
The Arcade Expression 0 takes care of the special character (underscore) used in the field attribute “column” name with a EncodeUrl to remove the “20%” for spaces. All good there.
APPs
BROWSER
Our S123 and data is in an on-prem server (so the portal is needed), and I changed with ?/&’s as needed. And checked that it is all Shared with Everyone (all FLs, etc.) I am at a loss now.