Hi,
I am using eForm for a fairly simple contact form on a webpage. On the form page I display two text template variables. The same page has a call to eForm. The whole page is as follows:
<h1>[*pagetitle*]</h1>
<p><b>[*haveYourSayTitle*]</b></p>
<br/>
<p>[*haveYourSayTopic*]</p>
<br/><br/>
[!eForm? &formid=`haveYourSayForm` &tpl=`haveYourSay-Form` &report=`haveYourSay-Email`
&to=`[email protected]` &from=`[email protected]` &replyto=`[email protected]`
&subject=`Volunteer Have Your Say` &invalidClass=`invalidValue` &requiredClass=`requiredValue`
&cssStyle=`haveYourSay-Styles` &debug=`0` &thankyou=`haveYourSay-Thanks`!]
I need the values of the two TVs (as displayed on the page) to be included in the resulting email.
I have tried:
1. placing the TV tags in the form (&tpl=`haveYourSay-Form` chunk) in hidden inputs (<input type="hidden" name="title" id="title" value="[*haveYourSayTitle*]" />), with [+title+] in the email template.
In this case I get the following error on the form page and no email:
Please correct your submission
[undefined] » Tampering attempt detected!
2. placing the TV tags straight into the email template (&report=`haveYourSay-Email` chunk).
In this case I get the email but no output from the TV.
I assume that if a page uses a template which has a TV, then any chunks or snippets used by that page should also have access to the same TV? (I take this from para 7 of
http://sottwell.com/how-template-variables-work.html)
I have tried using &sessionVars=`haveYourSayTitle` in the snippet call, with the but to no avail.
Anyone out there able to tell me how to do this?
Thankyou
eForm 1.4.4
MODx 0.9.6.1p2
PHP 5.2.4-dev
Apache 2.2.4
Windows Server