@ Janet
RE: Can you think of any solution to prevent this? Maybe an error when pressing Search if the autocomplete is not selected?
I had tried various solutions all were kind of buggy in some way. Probably these best solution is to clear the field if a user does not make a choice so it is a little more obvious they are not search based on distance.
I plan on rewriting this addon soon(ish) building using as new WordPress Editor block. I can investigate options again at that point.
RE: Because visitors also fill in the name of a city instead of the zipcode, I would like to put a pattern on the inputfield. Is that possible?
Possible, yes, you would have to edit the plugin file to do so.
Here’s a quick article on a couple suggestions in dealing with zip and form inputs.
https://css-tricks.com/html-for-zip-codes/
Hope this helps!
