I want to do something like:
{exp:freeform:form form_name="Employee Contacts" return="employees/confirmation/" notify="{emp_email}" template="employee_form" required="f_name|l_name|email"}
where
notify="{emp_email}"
or {emp_email} would be a custom field created in the weblog module.
I would wrap the freeform tags with the weblog entries tags so that I could use the {emp_email} variable.
Is this possible?
I found this post, but here they are talking about the {email} variable:
http://ellislab.com/forums/viewthread/114270/
I kind of want to do the same thing, but instead of {email} it would be my custom field {emp_email} which holds the value of an email address in a custom field (with no formatting, of course).
Here’s what I do.
Your template will need to Allow PHP on input. This is a modified snippet of some live code, I have the email address stored in a weblog of course.
{exp:weblog:entries weblog="{my_weblog_address}" limit="1" disable="categories|member_data|pagination|trackbacks" rdf="off" dynamic="off"}
{exp:freeform:form form_name="enquiry_feedback" form_id="enquiry_feedback" return="{my_template_group}/success" notify="<?php echo("{add-email}"); ?>" required="name|phone1|email|enquiry" template="enquiry_feedback"}
.....form controls etc. here....
{/exp:freeform:form}
{/exp:weblog:entries}
Where {add-email} is the field in weblog {my_weblog_address} which contains the required email address to incorporate.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.