We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can freeform use EE variables?

Development and Programming

awsadmin's avatar
awsadmin
127 posts
16 years ago
awsadmin's avatar awsadmin

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?

       
awsadmin's avatar
awsadmin
127 posts
16 years ago
awsadmin's avatar awsadmin

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).

       
ms's avatar
ms
274 posts
16 years ago
ms's avatar ms

Never tried, but regarding Solspace’ add-ons, you might get the best answers in their own support forums on www.solspace.com/forums/

       
baboonbrand's avatar
baboonbrand
14 posts
16 years ago
baboonbrand's avatar baboonbrand

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.

       
awsadmin's avatar
awsadmin
127 posts
16 years ago
awsadmin's avatar awsadmin

Got it working! I had to make sure I had no formatting on the email field, after a few tries I ended up having to delete the email field first and recreate it because even though I had changed the settings it was still acting like it had some of the formatting. Thanks again!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.