I'm creating a website that has a contact form on two different pages.
I am using the Pixel & Tonic ContactForm plugin and currently have a working contact form on one page - This one requires the user to provide their name, email, telephone, company name and message.
On the other page, the contact form is different as the user needs to select which department they would like their message to be sent to. For example:
<div class="select-wrapper"> <select name="department" id="department"> <option value="">- Please Select -</option> <option value="one">Business One</option> <option value="two">Business Two</option> <option value="three">Business Three</option> <option value="four">Business Four</option> </select> </div>
In the README document for this plugin, I can see that it is possible to programatically add email recipients by adding a hidden input field named “toEmail” and changing the craft/config/contactform.php config file
But, is it possible to do this when there is another contact form on the site? If so, what do I need to add to the department dropdown code?