Pull Data from Feature service, basemap

1825
1
Jump to solution
02-11-2021 05:35 AM
TimDunlevie2
New Contributor

Hi all,

Is it possible to populate questions from attributes from a map in survey123?

for example, I have a basemap with a feature layer that has some company data. When a person collects a sample, can it read attributes from the basemap / layer to populate some questions?

The basemap has a layer with : PROJECT, LOT_ID field.

If the survey collection point lands within the polygon can it grab the PROJECT & LOT_ID metadata fields?

thanks

0 Kudos
1 Solution

Accepted Solutions
BrettStokes
Esri Contributor

Hi Tim,

While basemaps in Survey123 are not 'interactive', they can be setup to display additional layers. Yes, it is possible to populate attributes directly from a feature layer using a JavaScript function. I would suggest taking a look at the 'JavaScript' sample available in Survey123 Connect.

BrettStokes_0-1613424632276.png

There is a group in this sample called 'Working with a Feature Service' that will help you get started. Also check out the 'Working with web services' section in the following Blog:

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

Best regards,

Brett

View solution in original post

1 Reply
BrettStokes
Esri Contributor

Hi Tim,

While basemaps in Survey123 are not 'interactive', they can be setup to display additional layers. Yes, it is possible to populate attributes directly from a feature layer using a JavaScript function. I would suggest taking a look at the 'JavaScript' sample available in Survey123 Connect.

BrettStokes_0-1613424632276.png

There is a group in this sample called 'Working with a Feature Service' that will help you get started. Also check out the 'Working with web services' section in the following Blog:

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

Best regards,

Brett