Select to view content in your preferred language

Autofill Closest Hospital in Text Field in Survey 123 Connect

164
1
2 weeks ago
HenriettaK
Emerging Contributor

Hello Community!

I am running into some trouble trying to select the closest hospital to our technician's location in the field. I have a point layer with local hospital locations linked to the survey in Survey 123 Connect. The field technicians will be using a geopoint question to submit their jobsite location, and I would like a text question called "Closest Hospital" to autofill with the closest hospital to their location. 

 

Does anyone know how to accomplish this workflow/ if this workflow is possible? Thank you all so much for your help!

0 Kudos
1 Reply
abureaux
MVP Frequent Contributor

You'd be looking at pulldata(@layer).

But I don't think you can pulldata for a point based on proximity like that. Point-in-polygon works though.

This sounds like H&S, which I do a lot of. We have a very similar process for field staff. Honestly, we just make the tech look at a map and locate the closest hospital. If you have a point layer with that data that you will be working off, you could have S123 launch from that Hospital Point Layer to start the process.

0 Kudos