Select to view content in your preferred language

pulldata using offline layer

101
1
Wednesday
MohamedIsmael
Occasional Contributor

I used pulldata(@layer)

and called web layer "world country" and relied on a field containing country names. I used the names in a question as a choice. If the person selects a country and their location isn't there, a message will appear "Your locatio not inside the country you selected". If the country they're located in is selected, a message will appear "welcome, your location inside the country you selected".
The problem in this case is that we need the internet.

The problem I'm facing now is that I'm relying on an existing layer on web but in field work, the internet isn't available everywhere. I want to rely on a layer that doesn't need the internet. Is this possible?

 

Use this layer "world country" to compare my location with the location of the country I selected. If my location is within the country I selected, a specific idea will be implemented. If my location is not within the country I selected, another idea will be implemented.

0 Kudos
1 Reply
TylerGraham2
Frequent Contributor

Pulldata("@layer") is still online only. What you might do is create the survey with an online and offline mode using pulldata("@property", 'online') where if it is online the user gets the questions that do the pulldata(@layer) check and if they are offline they get questions that don't use the pulldata("@layer") constraint.  For the offline, you could create an offline map that shows the country boundaries, in the bind::accuracyThreshold column of the geopoint put a value of like 10 so the maps will display an error message if the position error is more than 10 meters. They would then have to look at the map they could then choose the country that matches the one shown on their map.  

Prepopulate answers—ArcGIS Survey123 | Documentation

Survey123 Tricks of the Trade: Configure a map for... - Esri Community