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.

can contact form to send messages to different emails depending on criteria

  1. I need the contact form to send messages to different emails depending on the chosen criterion. Example: There are two fields 1) listbox "city" and 2) checkboxes "category"; The visitor must select the city and the different categories he wants to contact. If he selects the city Detroit and the categories food and car, the message will be sent to the emails that are related to the city Detroit and the categories food and car. If he selects to New York City and the categories food, car, pets and travel the contact will only be sent to the email that are listed in the city of New York and the categories food, car, pets and travel. Can I do this with gravity forms? If yes how?

    Posted 11 years ago on Thursday January 17, 2013 | Permalink
  2. This is not a built in feature of Gravity Forms. There is simple routing built in; for example, if they selected Detroit, you could send the email to one address, and if they selected New York, you could send the email to another address. However, the routing rules are not compound: you could not do as you explained using the routing rules in the form builder.

    However, you could do this with Gravity Forms using the gform_notification_email hook. You could test all your logic and based on the fields which were selected, you could change the admin notification email dynamically when the form is submitted. Here is the documentation for the gform_notification_email filter http://www.gravityhelp.com/documentation/page/Gform_notification_email

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