Forums

Form results to recipient based on drop-down

westpress 17 Jun, 2010
I have been scouring through the posts here looking for a solution to my desired functionality and the closest I can find is a solution for Dropdown Box defines email template ?!.

What I am looking for is a form that among other fields, contains an "Attention" drop-down field with selections for Unknown, President, General Manager, Sales, Customer Service, etc.

When the user click on the select button, I would like for ChronoForm to translate the "Attention" field selection into the appropriate email address for that department in our company.

I might add that I am currently using an older version of ChronoForm until I can upgrade my server hardware/server. If this is functionality which exists in the current version, I cannot use it until I am able to update Apache, PHP, and MySQL too (which will be soon I hope).
nml375 17 Jun, 2010
Hi,
If you check the #31 FAQ (http://www.chronoengine.com/faqs.html), you'll find suitable code for this. Just make sure you pick the right version, as the required code is different for 2.5.x, 3.0, and 3.1RC5.5

/Fredrik
westpress 17 Jun, 2010
I will give this a try, I didn't make the connection of safely displaying email addresses to mean drop-down selection. 😶 so I just skipped over this FAQ entry entirely. This is exactly what I want to do, so I will give it a shot. Thank you nml375 😀
westpress 18 Jun, 2010
Just wanted to let you know that this did the trick. The lightbulb has gone on now that I see it in action, as many other scenarios present themselves. 😀

Thanks again.
nml375 18 Jun, 2010
Hi,
Happy to hear you got it working, just remember to update your code if/when you upgrade your CF installation.

/Fredrik
This topic is locked and no more replies can be posted.