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 and multiple logic

  1. goleman
    Member

    We are using this form for a scholarship application, with submissions mailed to scholarship committees based on checkbox selections. At present we have one committee that oversees submissions for 15 different scholarships. I believe currently with routing, if an applicant has checked off 5 of those scholarships, the committee will get 5 separate but identical emails. Is there any way around this at all? For instance- creating an email field visible to admins only, that's conditional upon any of 15 different boxes being checked, that is passed a value only if one of those 15 boxes is checked, and having the routing logic send to that address only if that field is not empty? Just trying to wrap my head around this and avoid the generation and delivery of umpteen identical emails if possible.

    Posted 11 years ago on Monday February 11, 2013 | Permalink
  2. That is correct: all email addresses will receive the notification. My last check of a related situation:
    http://www.gravityhelp.com/forums/topic/stupid-email-routing-question#post-135176

    I'm not sure how you could use conditional logic to do this, but, you can use merge tags in your routing, so, if you can populate a hidden field in the form with the address you want the mail to go to, based on the choices made in the form, you could do this from the form builder.

    If not, and your rules are more complex, you can use the gform_pre_submission_filter or the gform_notification_email filter to change the email address before the notifications are sent.

    http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter
    http://www.gravityhelp.com/documentation/page/Gform_notification_email

    However, if there is one committee, I'm unclear of how you're using routing at all. Maybe there is another solution?

    Posted 11 years ago on Thursday February 14, 2013 | Permalink