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.

Modify User Notification Email Based on Dropdown Selection

  1. Hello,

    I recently posted a pre-purchase question:

    For the user notification email, is it possible to include information in the email that is related to who the admin email was sent to. For example, a user chooses Denver County from a drop down and the form data will then be sent to Vendor ABC, who is associated with Denver County. The user would then receive a confirmation email that their data had been submitted to Vendor ABC and includes Vendor ABC's email, phone, and main contact person. There are five vendors, so maybe it is 5 separate user notification emails based on County selection?

    Admin Chris Hajer responded that he would be able to help once the purchase was made and the form was in place. (

    I would probably modify the user notification email based on the country selection. There is a small bit of code to add to your theme's functions.php that will insert the vendor details based on the country selection. It will work essentially like the routing email, but you have more work to do to insert insert all those details into the notification.

    We can help you with the details after you make your purchase. You can accomplish what you're trying to do though, for sure.

    Can someone contact me on getting this in place?

    Thank You!

    Posted 9 years ago on Wednesday July 18, 2012 | Permalink
  2. Hi Jed, I will post something for this for you tonight. Thanks for your patience.

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  3. Sounds great. If you need any additional information, please let me know.

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  4. Can you send the vendor and county details to me at ? It doesn't make sense for me to make up the data if you have it, since you'd have to change it anyway. Also, do you have a form online yet with the county selector in place? We'll need a form to start with.

    Posted 9 years ago on Thursday July 19, 2012 | Permalink
  5. I will wait for this additional information before I post a solution. I can finish this on Friday for you if you get me the information, or let me know if I should dummy it up. Thanks.

    Posted 9 years ago on Friday July 20, 2012 | Permalink
  6. Take a look at the code I posted here:

    The notification email is all in the functions.php right now. I took what you had in the user notification area and hard-coded it all here. I had some trouble with the string replacement in the middle for the provider information.

    That code will go in your theme's functions.php. Let me know if you have any questions on implementation. The only thing you should change, I think, is the form ID, from 110 to your form ID.

    Posted 9 years ago on Tuesday July 31, 2012 | Permalink
  7. Chris,

    Thank you for your help on all of this. I'm wondering if you can clarify a little for me on the implementation?

    The code you have provided should go in my theme's function.php file. Got that! Other than changing out the form id, is there anything else that I need to do?

    Thank you!

    Posted 9 years ago on Tuesday July 31, 2012 | Permalink
  8. I believe that's all there is to it. Let me know if you get stuck implementing it. Try it and see how it goes.

    Posted 9 years ago on Tuesday July 31, 2012 | Permalink
  9. Chris,

    Looks like this is working as intended. Thanks so much!


    Posted 9 years ago on Monday August 6, 2012 | Permalink
  10. What a stroke of luck to find this string.

    I have a very similar request, but on a bit of a larger scale.

    My client has a list of about 40+ international dealers that they are trying to route email leads from the website. Much like Jed's situation, I am trying to send the dealer the lead information and send the submitter the dealer contact information with the responder.

    My question is, can I use the code you mention earlier in this post, but modify it with the appropriate countries and contacts? What global changes would I need to make? You mention his renaming of his form for it to work properly. Would I need to do that as well?

    And finally, if I make these modifications, will I still need to input the routing information into the Notification to Administrator section or would that be redundant after these changes?

    Thanks very much for the assistance.

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  11. Me too! I noticed the ad_action is called pre_submission_filter, does this mean that this script will override notifications settings dialog or will it work in conjunction?

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  12. Thanks for the update Jed.

    To lhubbell98 and RNickless:

    It's going to be difficult to handle three different support requests in one topic. Please begin new topics for your discrete issues and we'll address the issues individually. Please make reference to this post when you create your new topics, so we know where the majority of the work was done already. Thank you for your understanding.

    Posted 9 years ago on Tuesday August 7, 2012 | Permalink

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