Hi Adam, Thanks fot this video that was awesome. This makes my job a lot easier. I have a question. What happens if i pass 1 point and 2 polygons intersect with it. Can i give the user the opportunity to select the one they want to send?
Hey there! Great question. In Survey123 Connect, when you use the pulldata("@geopoint") function with the getValueAt parameter to query a feature service based on a geopoint, it generally returns the attributes of the first polygon it intersects with, if the point intersects multiple polygons. Unfortunately, as of now, there isn't a built-in way in Survey123 Connect to let the user choose from multiple intersecting polygons directly through this function. But here are a couple of workarounds that might help: First, have the user place a point where the intersection happens. Then, provide a list (maybe a "select_one" question) that shows all polygons intersecting that point, which you would need to populate programmatically based on the point’s coordinates. Once the user selects a polygon from this list, you can use the pulldata() function to pull the attributes of the selected polygon into subsequent questions in the survey. Survey123 Connect lets you write custom JavaScript functions in your survey's XLSForm. You could write a custom function that takes a geopoint as input, queries a feature service for intersecting polygons, and returns a list of intersecting polygon names/IDs. Then, use this list to populate a "select_one" question, allowing the user to select which polygon’s attributes they want to use in the survey. I hope this helps! Be sure to check the latest Survey123 Connect documentation or reach out to Esri support for the most up-to-date info. 😊
I have the same problem when you try to search for Westhill, survey does not find it, but I am using a CSV file, could you explain to me how to solve that problem?
I followed the example and succeeded in creating the form, but the pulldata only works on the desktop or mobile app, it doesn't work on the web. I was told it could be the old version, but I'm using survey123 connect version 3.19. Does anyone know what it could be?
Thanks for the video ^^ It is awesome. I only have one question. I was trying to use pulldata() with a select_multiple type and I can't get the multiple value from the selection, I only get the first one. Do you have any idea how to achive it?
@@adam_corcoran It worked just fine. I was searching for this feature for ages, thank you A LOT. Said that, I have one more doubt, I want to pull a select_multiple question, but it only pulls the first value selected, do you know how to make it pull every choices selected?
I've noticed that my pulldata function does not work when using the result of a select_one_from_file.csv. Has anyone else noticed this? I'm using the newest 3.18 version. Great video, by the way!
But what if the non public layer is hosted on a different portal than the survey? Something to do with pulldata("@property","token")? Or might the answer lie in webhooks in Survey123? Could you please share an example? Thanks in advance!
Thank you so much, Adam! You saved my project, your video was super clear, just awesome.
This was so helpful! Thank you for sharing this type of content!
Thank you Adam, I have been struggling with this topic for some time now. Thanks again and keep creating great content like this!!
Greetings from NZ, Nice one.
This is exactly what I needed today, and the bonus really helped too. Thanks!
greetings from SLC UT - really appreciate this!!
Thanks Adam so much..
Very much insightful. Your video solved my problem
Great video. thanks!
This is great. Thank you
Thanks!! What if the field contains a string with an inverted comma? How do I write the concat? Right now it won't match the field with that.
Hi Adam, Thanks fot this video that was awesome. This makes my job a lot easier. I have a question. What happens if i pass 1 point and 2 polygons intersect with it. Can i give the user the opportunity to select the one they want to send?
Hey there! Great question. In Survey123 Connect, when you use the pulldata("@geopoint") function with the getValueAt parameter to query a feature service based on a geopoint, it generally returns the attributes of the first polygon it intersects with, if the point intersects multiple polygons.
Unfortunately, as of now, there isn't a built-in way in Survey123 Connect to let the user choose from multiple intersecting polygons directly through this function.
But here are a couple of workarounds that might help:
First, have the user place a point where the intersection happens.
Then, provide a list (maybe a "select_one" question) that shows all polygons intersecting that point, which you would need to populate programmatically based on the point’s coordinates.
Once the user selects a polygon from this list, you can use the pulldata() function to pull the attributes of the selected polygon into subsequent questions in the survey.
Survey123 Connect lets you write custom JavaScript functions in your survey's XLSForm.
You could write a custom function that takes a geopoint as input, queries a feature service for intersecting polygons, and returns a list of intersecting polygon names/IDs.
Then, use this list to populate a "select_one" question, allowing the user to select which polygon’s attributes they want to use in the survey.
I hope this helps! Be sure to check the latest Survey123 Connect documentation or reach out to Esri support for the most up-to-date info. 😊
Hi Adam, the pulldata works just fine in my survey, but the autocomplete search becomes a problem
I have the same problem when you try to search for Westhill, survey does not find it, but I am using a CSV file, could you explain to me how to solve that problem?
I followed the example and succeeded in creating the form, but the pulldata only works on the desktop or mobile app, it doesn't work on the web. I was told it could be the old version, but I'm using survey123 connect version 3.19. Does anyone know what it could be?
Thanks for the video ^^ It is awesome. I only have one question. I was trying to use pulldata() with a select_multiple type and I can't get the multiple value from the selection, I only get the first one. Do you have any idea how to achive it?
did you ever figure this out? currently experiencing this!
what if I want to pull data from a layer that is not public? I really need this trick, but with surveys of my organization.
Exact same setup - just make sure your survey user has access to the feature layer they’re pulling data from when they’re signed in 🙏
@@adam_corcoran It worked just fine. I was searching for this feature for ages, thank you A LOT.
Said that, I have one more doubt, I want to pull a select_multiple question, but it only pulls the first value selected, do you know how to make it pull every choices selected?
I've noticed that my pulldata function does not work when using the result of a select_one_from_file.csv. Has anyone else noticed this? I'm using the newest 3.18 version.
Great video, by the way!
But what if the non public layer is hosted on a different portal than the survey? Something to do with pulldata("@property","token")? Or might the answer lie in webhooks in Survey123? Could you please share an example? Thanks in advance!