If/Else Form For Zip Code/County Filter

melvins138 18 Jun, 2013
I have a website that has specific content for certain counties and zipcodes where I live. I am creating pages for ZipCodes or Counties, but sometimes the Zipcodes fall across county lines, so I want County specific option.

I'm not sure if this is possible, but I am trying to create a form that will do this:

First Page
Textbox to enter Zip Code. Then a Next Button to move forward

If Zip1, Zip2, Zip3 is entered, Click Next,
Second Page Has Radio Group County1, County2 or Other
If County1 or County2 selected, go to URL, if Other is selected, a Different URL

If Zip4, Zip5, Zip6 is entered, Click Next,
Second Page Has Radio Group County3, County4 or Other
If County3 or County4 selected, go to URL, if Other is selected, a Different URL

If Zip7, Zip8, Zip9 is entered, Click Next,
Second Page Has Radio Group County5, County6 or Other
If County5 or County6 selected, go to URL, if Other is selected, a Different URL

Any other Zip# is entered, Click Next
Second Page Displays a Message


Is this possible?

Thanks In Advance
GreyHead 19 Jun, 2013
Hi melvins138,

Yes it's possible.

It looks as though something similar to a Double-Drop might do this on a single form. You could have a text input with an AutoCompleter for the zip code linked to a county drop-down that is populated when a zip code is selected. That would take a bit of coding but should work well.

Alternatively you can do it with a multi-page form and something like the Event Switcher [GH] action or custom PHP to do the switching.

Bob
melvins138 19 Jun, 2013
Great! Thanks, Bob. I'll look into these suggestions.
This topic is locked and no more replies can be posted.