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.

Dynamic Notification Routing - Rotate Email Address

  1. Hello,

    I have an upcoming project that I know Gravity Forms will be perfect for. The client has an "It would be nice" request, but not necessary that I thought I would run by you GF Gurus before I purchase. I know that I can set the form to email to a specific address based on user input, but this question goes a little further. Here is the scenario:

    I need to create a form where a user will select a specific county from a drop box. In most cases, this will trigger the form to send to one specific vendor. In some cases, there are multiple vendors assigned to the county and the notification emails need to rotate through the vendor list. I.e. Vendor A and Vendor B both do work for Denver County. The first form a user submits would only go to Vendor A, and the second form submission would only go to Vendor B. Then it would rotate back to Vendor A, and so on.

    Is this possible with a hook? If so, is there one already available, or do I need to find a developer to write it.

    Thank you for any information!

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  2. David Peralty

    There is the following hook:
    http://www.gravityhelp.com/documentation/page/Gform_notification_email

    I am not sure that you will be able to get routing and rotating e-mails working together though.

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  3. This looks to be a little over my head as it is. Is there documentation that would provide more information on how to implement this? Thank You!

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  4. David Peralty

    Not for your specific idea. The intention of this is to hardcode a value to make sure notifications go to a certain e-mail address.

    With some additional PHP code, you could check which option was selected, and based on the option, randomly pick an e-mail address that corresponds to the selection and return that e-mail address and send the form submission to that person. This kind of customization is beyond what I can offer here as support though.

    You may want to post a job in the job board and refer them to this post.

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  5. Thanks for your help David! I'll do that to see what we would be looking at. Cheers!

    Posted 12 years ago on Friday June 29, 2012 | Permalink

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