AnsweredAssumed Answered

Survey123 & Workforce - Location Validation as part of survey

Question asked by WingraveT@bv.com_BV on Jan 24, 2020
Latest reply on Jan 24, 2020 by WingraveT@bv.com_BV

Hello - my first question on the Esri Community!   


I'm currently working with Survey123 & Workforce and I'm wondering if there is a way of including a location validation question - e.g. at the begining of the survey the user has to set their location and it must be within x metres of the point that has been assigned to them via workforce. This seems like something that might be useful to lots of users so I'm wondering if someone has previously come up with a solution?


I'm wondering if exploring something along the lines of the below would potentially work? (where the 100 value would be my validation criteria);


TargetX/TargetY are points pulled in from Workforce

X = pulldata("@geopoint", ${location}, "x"

Y = pulldata("@geopoint", ${location}, "y"

Set the following as "relevant" criteria in a validation question -  ${X} = <(${TargetX}+100) OR >(${TargetX}-100) AND ${Y} = <(${TargetY}+100) OR >(${TargetY}-100)


Any thoughts would be greatly appreciated!