I created a survey for code enforcement were users can report a possible code violation.
We would like for the end user to type a few characters of the beginning part of the address and choices will appear and they will choose the appropriate address. The addresses have to be within the Corona city boundary. If the address is not within the city boundary the user will not be allowed to move forward with the survey or be able to submit it.
These are the calculations I have included in the survey form:
Label: Location / Address of Possible Code Violation Calculation: pulldata("@geopoint",${location},"reversegeocode.address.LongLabel")
Label: Is this address within the City of Corona? Calculation: if(contains(${_text},'Corona'), 'Yes', 'No')
I tried the calculations above but some addresses that are outside the city of corona city limits that have Corona in their address are answered with Yes, this address is within the City of Corona.
Is there a way to auto populate addresses that are within a city boundary only?
Can we restrict users from being able to submit the survey if the address is not within the city boundary?