[[eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &mailselector=`department` &vericode=`1` &subject=`Web site feedback` ]]
{{eFeedBackForm}}
Put all the parameters on one line.
[[eForm? &formid=`feedbackForm` &to=`[email protected],[email protected],[email protected]` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &mailselector=`department` &vericode=`1` &subject=`Web site feedback` ]]
And call uncached: [! !] vs. [[ ]]
I have 3 defined chunks, as defined on the examples page:
- eFeedBackForm
- eFeedbackReport
- eFeedBackThanks
This is the calling snipped code I am trying to test out:
[[eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &mailselector=`department` &vericode=`1` &subject=`Web site feedback` ]]
dunno if this is relevant... you say that you have an ’eFeedBackThanks’ chunk, but you’re naming it ’eFeedbackThanks’ in the snippet call.
<p><span style="color:#900;">[+validationmessage+]</span></p> <form method="post" action="[~[*id*]~]"> <input type="hidden" name="formid" value="contactusform" /> <input type="text" name="email" eform="Email Address:email:1" /> <input type="submit" name="submit" value="Send" /> </form>
[!eForm?&to=`[email protected]`&formid=`contactusform`&tpl=`contactform`&report=`contactreport`&thankyou=`contactthanks`&subject=`Web Contact Form`!]
Document or chunk not found for template id= ''
Quote from: Cassiel at Oct 16, 2006, 07:17 PM
dunno if this is relevant... you say that you have an ’eFeedBackThanks’ chunk, but you’re naming it ’eFeedbackThanks’ in the snippet call.
And a related and also possibly irrelevant question is whether your snippet is indeed called "eForm" (and not "eform" or "myEform" or whatever)...
...I also ensured my CHUNK-names were case-sensitive-matched to the value in the snippet-call...
I’m running MODx rev 1732, with eForm 1.4 and I’m running into a problem. I have the chunks:
- contactform
- contactreport
- contactthanks
Here is the contents of the contactform chunk:
<p><span style="color:#900;">[+validationmessage+]</span></p> <form method="post" action="[~[*id*]~]"> <input type="hidden" name="formid" value="contactusform" /> <input type="text" name="email" eform="Email Address:email:1" /> <input type="submit" name="submit" value="Send" /> </form>
New: You can now use <form id="formName"...> to match your &formid=`formName` instead of <input type="hidden" name="formid" value="formName" />
This discussion is closed to further replies. Keep calm and carry on.