AnsweredAssumed Answered

Restrict submission of form if geopoint is not within the city?

Question asked by zpusec on Jun 4, 2020
Latest reply on Jul 20, 2020 by Dante_COE


first, I used pulldata on geopoint to extract full addres to field named "address". My idea is to create calculation which will check if the full address with street name and number etc., contains name of the city. If not, then return value of null, and as it is requiered field, it will forbid submission of the form if the geolocation is set outside of that city.

Well, I'm not sure this logic is right, but the calculation I wrote sure isn't:


if(${address}) regex(., 'Zlatar Bistrica'), 1, null)


Any help would be much appreciated, thank you.