Select to view content in your preferred language

Can I pre populate Survey fields reading a rest endpoint service?

1229
2
10-01-2020 01:43 PM
DiegoLlamas
Esri Contributor

Hi,

I want to know if it is possible to pre populate fields from a survey using a rest service? I know that we can pre populate fields using a CSV file but, Can Survey read a rest service?

Thanks,

DLL

James Tedrick

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Diego,

Yes, you can use a custom JavaScript function to query a feature service and obtain a value.  The 'JavaScript' sample in Survey123 connect has examples of this.

0 Kudos
DiegoLlamas
Esri Contributor

Thanks James, this is nice. this could happen also with a none gis app rest service? survey can query this none gis rest service and prepopulate fields from my survey using this JavaScript function?

Regards,

Diego Llamas

0 Kudos