The minimum information (parameters) eForm needs to work with any form is:
- &formid - this needs to be the same as the ID attribute of your form. So <form id="myForm" action="[~[(id)]~]"> needs &formid=`myForm`. Without this the form will not work!
- &tpl - the form template chunk
- &report - the (email) report template.
In addition the submit method must be set to POST, otherwise eForm will not handle form submission.
To test if eForm is working at all I suggest you try the following example:
form Template: (call it
testFormTemplate)
<form method="post" action="[~[*id*]~]" id="testForm">
<label for="cfName">Your name:
<input name="cfName" id="cfName" type="text" eform="Your Name::1:" /></label>
</form>
Form Report: (call it
testFormReport)
<p>Here is the result of the test form:</p>
<p>name: [+cfName+]</p>
<div id="debug">[+debug+]</div>
and the snippet call:
[!eForm? &formid=`testForm` &tpl=`testFormTemplate` &report=`testFormReport` &thankyou=`testFormReport` &debug=`3` &noemail=`1` !]
As you can see I’ve set the &thankyou param to the same report template and I’ve set the &noemail param. Thsi way you’ll see the results straight away without having to check your email everytime. The debug param is set to 3, the maximum amount of debug information. This should give you all the format and parameter values and a print of the parsed form temlpate.
Get this to work and expand everything from there. Make sure your
download and install the latest eForm version.