Prepopulate Survey123 Form with Data from Custom API Endpoint

391
2
01-09-2020 01:58 PM
CN
by
New Contributor III

I'm just curious as to if/when the prepopulation of a survey123 form field with data from a custom API endpoint is going to be a reality in Survey123.  Some of our business workflows may depend on this.  

Let me give you one example scenario. You want to pre-populate weather information in a survey123 form field from a weather API.  So when the form loads it would use a x,y location and send that to the weather API, then the weather API would return the current temperature for that location and the survey form would pre-populate a text box with that.  This is actually a scenario that one of our current custom mobile apps use but we are trying to migrate away from it and use Survey123 instead.

Obviously this would only work when the form is online and would not work in offline mode and we are fine with that.  

Any feedback on the latest info associated with this is much appreciated.

Thanks,

Chad

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Chad,

This is already available in beta for the Survey123 field application.  Please refer to the Survey123 Early Adopter Community documentation on 'Custom JavaScript functions'.

0 Kudos
CN
by
New Contributor III

I see....Awesome!...Thanks.

0 Kudos