Pre-populating questions with dynamic data

80
1
02-12-2019 05:11 PM
Highlighted
New Contributor

Survey123 newbie here. What I'm looking do is add data from a source (table in this case) that's regularly updated into my Survey123 form questions however, I'm not sure what the syntax would be to enable this (or if it is possible). I know pulldata() can do something similar with a static table however, I'm looking to pre-populate questions with dynamic data  which is updated semi-regularly. 

Any advice would be helpful. Thanks.

1 Reply
Highlighted
Esri Contributor

Hi Andrew,


We could update the media folder the pulldata function is referencing when the table is required to be updated

https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-f... 


We could use the custom URL scheme to load values into the Survey on launch. I've seen this dynamically done through Collector fields or from links generated and sent through emails

https://community.esri.com/groups/survey123/blog/2016/07/30/understanding-survey123s-custom-url-sche... 

For specifically referencing a live layer outside of the form, I believe this JavaScript extensions will enable this and have seen it demonstrated by the S123 team. It's listed as in Beta if you'd like to explore this option further
Sneak peek—Survey123 for ArcGIS | ArcGIS 
This one is a bit more advanced and is yet to be officially released. The first two options will cover most scenarios, depends a bit on your workflows and context