By cschall on
I've got a client who needs to separate out emails based on the issues. The issue options are in a pulldown menu for the user to choose. I need to be able to take the name of the issue and populate the subject line of the email that Webform sends out. Can I do that? I only see the option to use text fields. Is there a way to use PHP in a hidden field to set the subject or some other work around?
My client requires this option and I didn't realize that Webform couldn't do it until now. I'd rather not have to recreate the whole form.
Any help is greatly appreciated!
Comments
There's an article around
There's an article around here somewhere with a piece of PHP code you can post into a page node which creates a custom contact page. I've used it with some modifications to add checkboxes and validation to one of my sites. Here's the code I'm using. You should be able to customize the form array to include a select element.
http://www.trailheadinteractive.com