I have a channel called Jobs. When admin posts a new entry, they are presented with a field called email_recipient
in which they can type an email address of their choice.
Then...on the template which contains the Freeform code. I would like to use the data in the email_recipient
field to be used in the admin_notify
parameter on Freeform. However, so far I have had no joy and wondered if this was even possible or will Freeform not allow this
Can anyone help me out with this?
My code is
{exp:channel:entries
channel="jobs"
dynamic="on" status="Open"
disable="categories|category_fields|member_data|pagination"}
<h3>Job Application Form</h3>
{exp:freeform:form
form_name="job_application"
return="/contact/thanks"
form:class="form-horizontal contact-form"
form:id="job_application"
recipients="yes"
recipient1="{recipient_email}"}
<!--Form Data-->
{/exp:freeform:form}
{/exp:channel:entries}
Note that the above example is using recipients="yes"
and reciepient1=
. I have tried with admin_notify
too with no difference
recipient1="{recipient_email}"
It still not send email to that recipient?recipients="yes" recipient1="{recipient_email}"}
and putadmin_notify="[your email address]"
. Put email hardcoded and test if you still not receive emails ?{exp:channel:entries}
pass parameterparse="inward"
and mail will sent to{recipient_email}
address :)