PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Routing question

  1. jdyer05
    Member

    I have tried searching the forum for the answer to my question, but a lot of the threads I try to view give me an "unauthorized" message. So I apologize in advance if this has been asked before.

    I know from my research that Gravity Forms currently do not support zip code forwarding. (which I would love...) My question is this: With these forms, would it be possible to set up staggered routing rules? For example, I know it is possible to route the form based on a drop down menu. But what if i wanted to send the form based on a drop down of a drop down?

    An illustration: A customer is filling out a contact form on our website. The form asks for the customers country, then state. Once the customer has chosen those options from a drop down, a third drop down menu appears asking the customer which of the stores in that state he would like to contact. Once he chooses a store, the form is routed to that store's email address. Each drop down would be hidden until the one before it was filled out. So choosing "Canada" would produce a "Territory" drop down, where as choosing "US" would produce a "State" drop down, and the appropriate stores in that area would be shown in the third drop down.

    I know that it seems complicated to do what I am proposing, but my thought is that it would be less complicated than having to program a php form that uses a store locator to find the customer's closest store, and then email the form to that email. Whew! That is a lot!

    Is there any chance that Gravity Forms would be what I am looking for? I'd love to get working a solution today, but I would like some reassurance that I am on the right path with this plugin. Thanks so much!

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  2. The reason why you are unable to access support is because you registered with an email address that is not the same as the email address you used to purchase Gravity Forms on PayPal. You will need to select "My Account" and change your email address to the one used to purchase Gravity Forms on PayPal.

    A drop down of a drop down is still a drop down... the problem is the routing rules are pre-defined so you'd have to tell it which drop down when the routing rules are setup.

    If you want to dynamically set the send to address based on a drop down anything is possible via customizations and some custom code. There is a filter that can be used to set the send to address using PHP. So if routing doesn't do what you need it to do, it can be customized via custom code.

    If you aren't comfortable with PHP you could hire a developer to implement a customization. We could recommend some developers with Gravity Forms customization experience if you would like.

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  3. Hi,

    Is there any more information on location-based routing?

    For instance, I would like the form submissions from ZIP codes 021xx to be routed to one email address.

    However, I would like form submissions from ZIP codes 022xx to be routed to a second email address.

    Is this possible?

    In the drop down for routing, I can not choose the ZIP code field.

    Here is a screenshot: https://www.evernote.com/shard/s1/sh/850c9101-6642-4ea3-9e62-58e263aa0d7e/7ff9ff8dcb61c9d7837ceb2b58866cc9

    Thanks,
    Josh

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  4. You could use the gform_notification_email filter and create your own routing rules based on the zip code entered: http://www.gravityhelp.com/documentation/page/Gform_notification_email
    The function you write would check the zip code entered then change the email address based on the range the zip code fell in.

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  5. This is great advice! Thanks Chris.

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  6. I've done something similar in the past. If you'd like help with it, please create a new topic in the regular support forums. http://www.gravityhelp.com/forums/forum/gravity-forms#postform

    Thanks

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink

This topic has been resolved and has been closed to new replies.