1: Yeah, that's probably a better experience. I'm making a note.
2: Are you thinking something like this? api.zippopotam.us/country/state/city - I actually had not seen this option before I just checked the page as in right now...But yeah, that should be possible. Will require a little extra work but I can add it on the todo list for sure.
Yes, exactly. I was not aware of that new feature either.. of was just thinking about let it be optional whether the editors enter zip code or city.. e.g. like this small example: http://methvin.net/js/zip/
But if some only want the zip code as input field it might be an option in the settings?
City field near zip code
Great package :)
An idea might be to move the city input field (disabled) to be located just below the zip code field?
Futhermore, is it possible to extend the package to allow input for city and from that find the zip code?
/Bjarne
Hi Bjarne
Thanks for the feedback :)
1: Yeah, that's probably a better experience. I'm making a note.
2: Are you thinking something like this? api.zippopotam.us/country/state/city - I actually had not seen this option before I just checked the page as in right now...But yeah, that should be possible. Will require a little extra work but I can add it on the todo list for sure.
Thanks again.
/Jan
Hi Jan..
Yes, exactly. I was not aware of that new feature either.. of was just thinking about let it be optional whether the editors enter zip code or city.. e.g. like this small example: http://methvin.net/js/zip/
But if some only want the zip code as input field it might be an option in the settings?
/Bjarne
Hi Bjarne
That should be possible to make optional indeed - Thanks for the link :)
And then the setting could just be changed to something like
If both have been checked both fields are enabled and the script is listening entries in both fields.
If only city has been allowed then zip is disabled and placed under "City" and vice versa.
/Jan
Yes that seems to be optimal as the developer then can decide whether to use zip, city or both for lookup :)
and have a default configuration / fallback - e.g. just like it is now.
is working on a reply...