Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 6 replies, 2 voices, and was last updated 3 years, 4 months ago by
Steven Zahm.
-
AuthorPosts
-
02/13/2019 at 4:23 pm #484570
Janet Barlagen
ParticipantHi Steven,
The zipcode search is working just fine, except there are a lot of website users who, after typing in a zipcode, do not select the result from the autocomplete :-(.
Then of course the result is not what they expect…Can you think of any solution to prevent this? Maybe an error when pressing Search if the autocomplete is not selected?
In my case there will never be a search without a zipcode.
Greetz, Janet
02/14/2019 at 5:58 am #484586Janet Barlagen
ParticipantHi Steven,
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?Janet
02/14/2019 at 9:07 am #484625Steven Zahm
Keymaster@ 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!
02/14/2019 at 12:42 pm #484637Janet Barlagen
ParticipantHi Steven,
Thanks for answering my questions.
I edited the plugin, trying your suggestion with the pattern.
But there was no errormessage, because field stays empty if autocomplete is not selected :-)Adding ‘required’ did the trick.
Janet
02/14/2019 at 3:04 pm #484652Janet Barlagen
ParticipantHi Steven,
Immediatly after the adjustment I get a visitor who tells me it still can go wrong.
If they press Enter instead of pressing the Search button, the ‘required’ message does not show.
What can I do about that?Grrreeeetzzz, Janet
02/14/2019 at 9:18 pm #484674Janet Barlagen
ParticipantUsed all kinds of javascript to prevent using Enter in id=”cnmcs-address-input”
name=”cn-zipcode”.
None seems to work.You can type anything you want, no matter the pattern, and then press enter.
02/15/2019 at 9:16 am #484725Steven Zahm
Keymaster@ Janet
I’m going to close this thread since a new one was started here:
https://connections-pro.com/support/topic/search-with-zipcode/
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.