Select to view content in your preferred language

Cannot open Survey123 link in field app

786
3
07-06-2023 06:19 AM
Tiff
by
Occasional Contributor III

My workflow is to have a link in Field Maps open up to the Survey123 field app. The field app is preferred due to low connectivity and having drafts just in case.

I have used both the argis-survey123:// prefix and the one listed on the website https://survey123.arcgis.app/ and both result in a constant cycle between "Downloading", "Unpacking", and "Downloading thumbnail" and will not open the form.

It is a survey that has URL parameters set to autopopulate fields within the feature layer and the survey also includes repeat questions. If I take out the URL parameters, survey opens up but the fields do not populate. If I include just GlobalID parameter, it will not open and blinks through the cycle.

Is there something wrong with my URL link or something I am missing?

Example:
https://survey123.arcgis.app/?itemID={ITEMID}?field:parentglobalID={GlobalID}&field:TYPE={TYPE}&field:ID={BMP_ID}&field:ASSET_ID={ASSET_ID} 

 

Tags (2)
0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

Is this on a windows pc?  I have never got the app launch to work on windows.  May be due to having to be an admin install not sure.

But the URL you posted does seem to have an issue.  After itemid should be & not ?.

https://survey123.arcgis.app/?itemID={ITEMID}&field:TYPE={TYPE}&field:ID={BMP_ID}&field:ASSET_ID={ASSET_ID} 

It looks from the help that this URL does use ? but not the app link?  Tricky.

https://survey123.arcgis.app?itemID=36ff9e8c13e042a58cfce4ad87f55d19&field:surname=Klauser&center=37...

vs

https://survey123.arcgis.com/share/36ff9e8c13e042a58cfce4ad87f55d19?field:surname=Klauser&center=37.... 

from here https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm 

I am also not sure you can use a field for itemid.  Not sure I have never done it but try that also.

Hope that helps

0 Kudos
Tiff
by
Occasional Contributor III

Hi, thanks so much! So to clarify, item ID isn't a field but the pre-set survey ID (sorry my syntax was confusing). And video is taken on the mobile app, not desktop.

And WOW I think it was in fact the & instead of the ? - my mistake. Thank you so much for catching that!

I think one point of confusion for me still is when do I need to set the GlobalID in the URL parameter? It looks like the survey is inputting those fields I set from the URL parameters. But do I need GlobalID={GlobalID} or parentglobalID={GlobalID} (for the related table) or does it automatically set it based on the survey in the pop-up? I would assume I need the latter but I'm a bit confused.

Edit - I just tested it out and am extremely confused. It looks like completing the inspection also creates a brand new point in the layer, which is not ideal. What we'd want to do is create and inspection from the existing point.

0 Kudos
DougBrowning
MVP Esteemed Contributor

Well this gets asks a lot but it can be hard to explain.  Sounds like you created the form based on a service that has the parent and the child in it, which means the form now does.  Instead you can have the form just create the child and send over whatever your related key is.  At that points it is linked.  Right now you just have a form that looks like the service so it will create new parent and child.  For this way you remove the parent part of the form and instead pass the key in via URL managing the relate yourself basically.  Using a standard text key here and not a globalid works better.

Or you have the form open a parent for editing and add a repeat.  I do not like this option since users can mess up the parent.

I would start by reading my post here on connecting these.  It is a advanced topic so it will take some reading to get it all.   https://community.esri.com/t5/arcgis-survey123-questions/mapping-with-survey123-within-a-polygon-or-... 

Hope that helps.  Relationships can be complicated :).

But if using the app on field app you want this format  arcgis-survey123://?itemID=ea7c126d644