I am in no way a coder. I offer a service were I am limited to certain postcodes in sydney, australia.
Basically I wanted a simple search box where they type in their post code and after hitting enter it shows up with a message like, “Yes! we come to your area. Call now to make a booking!” or (if not in the list) “Sorry! it doesn’t look like your area is currently serviced”
Is this possible with CMS?
A push in the right direction would be greatly appreciated
Thanks in advanced
Do you have the UI created already? Could you provide a share link to your project, as well as a published link to the page on your site? Can you provide more info, like what post codes you are currently supporting?
It’s actually simple to do this directly within Webflow, but you’ll need some JavaScript know-how.
You’ll need to ask yourself how often does the data change? If not often, you can hardcode the data into the table with the Embed Code component, otherwise it’s also possible to generate the table via CMS and some custom code.
I’ll give them all a go! Thanks heaps for your responses. That list script seems like it may be the way to go. Only needs to be very basic! Thanks heaps
Nice one! I’ve just implemented this on my website, and it works perfectly!
However, I tried to make the postcodes dynamic as well and this didn’t work out. What I did; I’ve added a text field in the CMS and pasted the postcodes within this field like this: ‘1234’, ‘5678’, ‘9101’, ‘1213’, ‘1415’. Then I inserted a dynamic field in place of the numbers and selected the text field. After this change, the solution stopped working.
This is great! It works fine for a small batch of zip codes, but after 10,000 characters Webflow won’t accept the code. Any workarounds for this? Tried embedding an html from github with this solution but I couldn’t make it work.