Hi I'm publishing a survey123 form that needs to validate if someone at the address entered has already filled out the survey. I've configured the form using survey123 connect, and the survey widget acts as expected. When I publish the survey, it does not behave the same. What is going on???
My validation method:
- addr - text field for user input of address using ArcGIS world geocoder
- addr_text - calculation string(pulldata("@json", ${addr}, "address"))
- dupe_check - calcluation using pulldata "getValue" from the service url for the survey - pulldata("@layer", "getValue", "attributes.objectid", "<SERVICE URL>", concat("addr='", ${addr_text},"'")
- condition added to addr - string-length(${dupe_check}) < 1
When I use the Survey123 Connect widget the survey correctly identifies the duplicates. When it's published, the 'dupe_check' field is always blank, even when I input a duplicate address.