I Need To Redirect One Form to Multiple URLs based on ZIP (user data)

  • elaw
    Asked on December 17, 2014 at 7:38 PM

    Hey!I am trying to make my form collect a zip code from a user. Once the zip is gathered, i want that to forward to a page specific to that zip code.

    EXAMPLE:

    user enters 45459 for zip code and completes the rest of form. then redirects to custom url: http://www.napower.com/710370/rates-and-plans/select-provider?zip5=45459&customerType=0&x=137&y=13

    (NOTE THE ZIP IN THE URL above.) that zip code will be different upon each user that fills the form out. Is there a way of doing this with jotform at all?

     

  • Charlie
    Replied on December 17, 2014 at 9:20 PM

    Hi,

    You can do this by getting the field name of the zip code field and inserting it to your custom URL. You can follow the screenshot below. I've cloned your form for testing purposes.

    1. Click the Properties of the Zip Code field of your form and get the name of it.

    I Need To Redirect One Form to Multiple URLs based on ZIP (user data) Image 1 Screenshot 30

    2. Navigate to the "Thank You" page setting and choose Custom URL.

    Based from the link you have above, this is how it will look like.

    http://www.napower.com/710370/rates-and-plans/select-provider?zip5={zipCode}&customerType=0&x=137&y=13

    The {zipCode} is the name of the field where the value will depend on the users input.

    I Need To Redirect One Form to Multiple URLs based on ZIP (user data) Image 2 Screenshot 41

    3. Here's the edited cloned form that I have: http://form.jotformpro.com/form/43507621950958

    Here's our guide in finding the field IDs and Names, How to Get Field IDs and Names.

    I hope this helps. Let us know if you need more assistance on this.

    Thank you.

  • elaw
    Replied on December 18, 2014 at 11:53 AM

    Easy enough it sure did! Thanks so much for the answer here! I guess the only thing i need to do is set up commercial so when they click a different box, it does the second string of urls by zip. (im assuming i can use same methods and just add conditions to make this work.)

     

    Thanks again, and Jotform is THE BEST! It's the only place i use for contact forms. :)

  • Charlie
    Replied on December 18, 2014 at 12:02 PM

    You're welcome. I'm glad that it worked for you.

    If you need an assistance again or have any other concerns with regards to building your form, please feel free to open up a new thread here in the forum, we'll be more than happy to help you.

    Again, thank you for your kind words. We'll continue to improve and innovate our products and services to give the best experience and functionality our users want. 

  • Richard
    Replied on January 17, 2015 at 4:18 PM

    I need to re route, in bound web form inquires , via ZIP code, to agents across USA

    can anyone suggest a solution,

     

     

     

     

     

  • Kiran Support Team Lead
    Replied on January 17, 2015 at 8:21 PM

    Hello Richard,

    Your question is moved to a separate thread and shall be addressed there.

    http://www.jotform.com/answers/498080

    Thanks!