Restrict entries by geography

191
1
03-06-2023 12:02 PM
MichaelGaiggEsri
New Contributor III

This question feels so basic, apologies if it has been asked before.

Can I restrict form submission by geography and provide feedback to user?

Use case is simple: User provides their address and form checks if address is within specified geography (maybe a zip code, a county, a state, or even a custom boundary specified such as service area or study area). If address point falls outside the geography/area, let user know that this is the case, e.g. "We currently don't service your address, please try another address." or "You are about to submit a survey result that is outside the survey area, proceed anyway? Yes/No"

Thanks!!

 

0 Kudos
1 Reply
JenniferAcunto
Esri Regular Contributor

This Tricks of the Trade blog walks you through how to use @ layer to do just that. 

Survey123 Tricks of the Trade: pulldata("@layer")

- Jen