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

Question about nesting with FreeForm

Development and Programming

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

Moderator’s note: Moved to Modules.

Hello and thanks for reading this.

I am using FreeForm on my website to run my forms. Currently, to send the form to an email address, there is a notify parameter in the FreeForm code as seen here:

{exp:freeform:form form_name="ask_father_tom" required="fname|lname|city|zip|phone|email" notify="[email protected]" template="ask-father-tom"  return="pages/thank-you"}

My client has requested the ability to change this themselves and modifying the templates directly is not really an option, as they are very non-techy.

What I tried to do was create a new weblog and entry to house the email addresses and set the notify parameter to dynamically pull the email address from the weblog entry. I turned off encoding here:

Admin > Weblog Administration > Weblog Management > Edit Preferences > Automatically turn URLs and email addresses into links

…and this is what my code looks like:

{exp:freeform:form form_name="ask_father_tom" required="fname|lname|city|zip|phone|email" notify="
{exp:weblog:entries weblog="forms" url_title="forms"}
{fe-tom}
{/exp:weblog:entries}" 
template="ask-father-tom"  return="pages/thank-you"}

I tested the nested code (everything between the quotes after notify) here to verify it is pulling the email address as plain text: http://www.cammonline.org/index.php?/pages/test

When I try and submit the form, the email is never received. My question is how do I get that string (email address(es)) in the notify parameter correctly? Is my nesting syntax correct?

Thanks in advance!

Scotty

       

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.