Collector Passing Field to Survey123 Help

1851
4
04-23-2018 02:13 AM
Highlighted
New Contributor

Hello All,

I need help with Survey123 and Collector. I did the setup a little backwards. I have feature layers in a webmap published to use in collector and I created a survey. I am now trying to join the two feature services. I just need one field to match and I will be okay, after all this is a simple dataset and will only be using the survey123 forms in the end. I currently have users saving a waypoint to one of the feature classes in collector and then using the custom URL to access Survey123. Reading all the blogs and comments I first tried using the URL to link to a field "NestID" but since this is unique ID and a text field all I get is ${}, so I tried adding {Name} and that is all I get. I realize now from reading that it needs to be a "selected one" or multi. Is that right? So then I tried passing x,y to auto pop by using center={}. Again I only get the brackets. I now realize that xy needs to be in the same field. For the life of me I can not figure out who to do that to where it will auto populate. 

I also tried recreating the survey linking it to the feature service online in the beginning. This work but will not let me publish because I have repeats and need them. 

We need collector to navigate back to the found bird nest but we want to use Survey123 for data collection. Can someone please help me  connect the two dots.

Sorry if this has been covered. I have gotten lost in all the post and after two weeks I am tried of beating my head against the wall. 

Thanks,

Zak

4 Replies
Highlighted
New Contributor

I was able to pass newly collected coordinates from Collector to Survey123. I missed it in https://community.esri.com/groups/survey123/blog/2016/07/30/understanding-survey123s-custom-url-sche... 

If you want to pass lat/lon values from the geometry in a feature, you can add an Attribute Expression to your popup do dynamically get the lat/lon values from the geometry of your feature.
   1) 
Open the 'Configure pop-up dialog of your feature layer's and then select 'Configure Attributes'.
   2) Add a new Attribute Expression.
   3) Look for Geometry under the Globals tab and fetch Geometry($feature).x
   4) Use the Edit link at the top to give your expression a friendly name
   5) Repeat steps 2 through 4 to create a second expression for the y coordinate.

Now if I could get Survey123 to pass fields back to Collector in the popup as read only. That way observers can review the last recorded before conducting a new survey. Can this be done?

Highlighted
Occasional Contributor

Hi Zak,

I am trying to figure out how to pass the lat/long from the geometry of another point feature to my Survey but I'm not having good luck with it. So following the notes in the blog post you mentioned, once you set up the Attribute Expression to get the X and Y, was there anything else you needed to do to get your survey point to center at that location? I assume I need to specify something in the custom URL after "center=" but I'm not sure... Any help is much appreciated!

Alina  

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Alina,

You may want to look at https://community.esri.com/thread/188510-survey123-with-collector-set-geopoint#comment-839398 - Doug pretty well covered some of the known hiccups of using Arcade's X & Y functions

Reply
0 Kudos
Highlighted
Occasional Contributor

Thank you James! I ended up using the first method that uses existing X and Y coordinates in the attribute table of the point feature class. My basemap is in a projected coordinate system so I figured I can use Calculate Geometry to get my local X and Y which then I can pass to my Survey123. That ended up working fine for this project. I will definitely look into the post you referenced as a quicker way to set it up for future surveys. 

Reply
0 Kudos