The "report" is actually the body of the email that you get when the form has been filled in. You can use a document instead of a chunk, but that’s it. You need the report. It is confusingly named, yes. The top post says this is optional. I don’t know why.
But can I also format the eForm call so that I don’t need the "&report" template chunk?
This is just the required fields and the type of data that must be filled in. - Human label, field name, data type. I’ve no idea what the number does, actually. Yes, this could be better documented.
Oh, one more thing, could someone also explain the syntax for "text1:Text1:string:1", what does the three (four?) parts do?
If you miss out a required field, the form is reloaded. The intention with setting the value is to pre-fill it with whatever you just filled in - so you don’t have to fill everything in again.
Oh #2! Sorry, just one more question (for now): "<input type="text" name="text1" />" works for me, but in examples I’ve seen there is also value=[+text1+], like "<input type="text" name="text1" value="[+text1+]" />" What does that last part do?
EDIT: Come on everyone, lets get some real uses of this thing documented for people. It is hellishly confusing at present.


EDIT: Come on everyone, lets get some real uses of this thing documented for people. It is hellishly confusing at present.
How about this basic outline for documentation?
* Complete guide on adding a basic "email, name, comments" form - INCLUDING the creation of a success page, and a usable form chunk, report chunk.
* How to add server validation
* How to add CAPTCHA
etc.
<p><span style="color:#900;">[+validationmessage+]</span></p> <form method="post" action="[~[*id*]~]"> <input type="hidden" name="formid" value="feedbackForm" /> <p><label accesskey="n">Your Name</label> <input type="text" name="Name" maxlength="60" eform="Your Name::1" /></p> <p><label accesskey="e">Your Email Address</label> <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p> <label accesskey="s">Subject</label> <select name="subject"> <option value="Feedback">Website feedback</option> <option value="Support request">Support request</option> <option value="Feature Request">Feature request</option> </select> <p><label accesskey="c">Comments</label><br /> <textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p> <p><label">Would you like to be on our mailling list?</label> <input type="radio" name="list" value="Yes" eform="Mailling List::0:" /> Yes <input type="radio" name="list" value="No" /> No </p> <p> Please enter the verification code below: (to prevent spam)<br /> <img src="[+verimageurl+]" alt="verification code" /><br /> <input type="text" name="vericode" size="20" /> </p> <p><input type="submit" name="submit" value="Send Feedback"></p> </form>
<p>This is a response sent by [+Name+] using the feedaback form on the website. The details of the mesage follow below:</p> <table> <tr valign="top"><td>Name:</td><td>[+Name+]</td></tr> <tr valign="top"><td>Email:</td><td>[+email+]</td></tr> <tr valign="top"><td></td><td>[+subect+]</td></tr> <tr valign="top"><td>comments:</td><td>[+comments+]</td></tr> </table> <p>Would [+name+] like to be on our mailing list? <strong>[+list+]</strong></p> <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>
<h3>Thank You!</h3> <p>We do appreciate your feedback. Your comments have been submitted to our office and hopefully someone will bother to actually read it.</p> <p>Please be assured that we will do our best not to ignore you, but if today's a Monday please try again in a few days.</p>
[[eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedbackForm` &report=`eFeedbackReport` &gotoid=`34` &vericode=`1`]]
Thank You!
We do appreciate your feedback. Your comments have been submitted to our office and hopefully someone will bother to actually read it.
Please be assured that we will do our best not to ignore you, but if today’s a Monday please try again in a few days.
Hope this helps seomone.

<input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" />
&format=`email:Your Email address:email:1`


<select name="subject"> <option value="Feedback">Website feedback</option> <option value="Support request">Support request</option> <option value="Feature Request">Feature request</option> </select>
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: array_values(): The argument should be an array Error type/ Nr.: Warning - 2 File: /usr/www/users/test/manager/includes/document.parser.class.inc.php(705) : eval()'d code Line: 372 Parser timing MySQL: 0.0168 s s (19 Requests) PHP: 0.0516 s s Total: 0.0684 s s
$poweredby ="Powered By <a href='http://www.modxcms.com/' title='Content managed by the MODx Content Manager System'>MODx</a>.";
}
So if I understand correctly,is the same as the "old" way to do it:<input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" />&format=`email:Your Email address:email:1`

And both of them creates the content of a placeholder named [+email+] which I can use in the report template?
I’m still not sure what the "data type" field does, but I guess it has to do with the validation.
And also I’m wondering about how "<img src="[+verimageurl+]" alt="verification code" />" works.
[+validationmessage+], is that the text they get if the validation not "validates"? Where does that text come from?
If someone is going to write more on this tutorial, please add something about what is needed to add the possibility to attach a file to the form.
Also I think I read that it’s possible to automatically generate a document when someone is using the form, but I might have missunderstood that?
EDIT: Should there not be a "call" to eform here?I guess I should add it to the first line?<select name="subject"> <option value="Feedback">Website feedback</option> <option value="Support request">Support request</option> <option value="Feature Request">Feature request</option> </select>
How can I set the maximum file size for an attachment?
This discussion is closed to further replies. Keep calm and carry on.