Pre-populate question with an answer from a previous survey?

685
1
02-11-2021 07:50 AM
JulieWebb
New Contributor

Hello!

I am digitizing a water quality form for a client. In their original form, they ask that for the meter reading from the previous day as well as the meter reading for the current day.

From what I understand, pulldata() works for external datasets. Is there a way to pull the meter reading from the last form that was filled out and use it to populate the "previous reading" question? A way to reference the survey feature service? 

I am trying to automate it, because I think having the user close out, open a previous survey, close out of that, and reopen their current form is an inefficient workflow. 

JulieWebb_1-1613058331397.png

 

 

0 Kudos
1 Reply
Jing_Sun
Esri Contributor

Hi, I think you can use the custom JavaScript function to query the feature service, one limitation is that the device has to be online. Have a look at the "Working with web services" section of this blog:

https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-f...

0 Kudos