[[!FormIt? &hooks=`recaptcha,spam,email,redirect` &emailSubject=`Class Registration Form` &submitVar=`go` &emailTpl=`MyEmail` &emailTo=`[email protected]` &redirectTo=`56` &validate=`name:required, phone:required, email:email:required, class:required:minLength=`1`, membership:required:minLength=`1`, text:required:stripTags` &recaptchaTheme=`white` ]] [[!+fi.error.error_message:notempty=` <p>[[!+fi.error.error_message]]</p> `]] <form class="form" action="[[~[[*id]]]]" enctype="application/x-www-form-urlencoded" method="post"> <input name="nospam:blank" type="hidden" /><label for="name">Name: <font color="#FF0000"><span class="error">[[+fi.error.name]]</span></font> </label> <input id="name" name="name" type="text" value="[[+fi.name]]" /><br /> <br /> <label for="phone">Phone Number: <font color="#FF0000"><span class="error">[[+fi.error.phone]]</span></font> </label><input id="phone" name="phone" type="text" value="[[+fi.phone]]" /><br /> <br /> <label for="email">Email: <font color="#FF0000"><span class="error">[[+fi.error.email]]</span></font> </label><input id="email" name="email" type="text" value="[[+fi.email]]" /><br /> <br /> <label for="class">Class: <font color="#FF0000"><span class="error">[[!+fi.error.class]]</span></font> </label> <select name="class" value="[[!+fi.class]]"> <option value="" [[!+fi.class:FormItIsSelected=``]]>Please select ...</option> <option value="Certified Supply Chain Professional" [[!+fi.class:FormItIsSelected=`Certified Supply Chain Professional`]] >Certified Supply Chain Professional (Date: 4-19-2017)</option> <option value="Certified Supply Chain Professional and Exam Fee" [[!+fi.class:FormItIsSelected=`Certified Supply Chain Professional and Exam Fee`]] >Certified Supply Chain Professional and Exam Fee (Date: 4-19-2017)</option> <option value="Basics of Supply Chain Management" [[!+fi.class:FormItIsSelected=`Basics of Supply Chain Management`]] >Basics of Supply Chain Management (Date: 4-20-2017)</option> <option value="Basics of Supply Chain Management and Exam Fee" [[!+fi.class:FormItIsSelected=`Basics of Supply Chain Management and Exam Fee`]] >Basics of Supply Chain Management and Exam Fee (Date: 4-20-2017)</option> </select> <br /><br /> <label for="membership">Are you a member? <font color="#FF0000"><span class="error">[[!+fi.error.membership]]</span></font> </label> <select name="membership" value="[[!+fi.membership]]"> <option value="" [[!+fi.membership:FormItIsSelected=``]]>Please select ...</option> <option value="Member" [[!+fi.membership:FormItIsSelected=`Search Engine`]] >Member</option> <option value="Non-Member" [[!+fi.membership:FormItIsSelected=`Social Media`]] >Non-member</option> </select> <br /><br /> <label for="membernumb">Membership Number (If Member): <font color="#FF0000"></font> </label><input id="membernumb" name="membernumb" type="text" value="[[+fi.membernumb]]" /><br /> <br /> <label for="text">Your Mailing Address: <font color="#FF0000"><span class="error">[[+fi.error.text]]</span></font> </label><textarea id="text" cols="55" rows="7" name="text">[[+fi.text]]</textarea><br /><br /> <br class="clear" /> <label>Enter SPAM Code:</label> [[!+formit.recaptcha_html]] <span class="error"> [[!+fi.error.recaptcha]] </span> <label>You may click the circular arrows above (Get a new challenge) to load another image that's much easier to read.</label><br class="clear" /> <br /> <div class="form-buttons"> <input type="submit" name="go" value="Send Contact Inquiry" /> </div> </form>
&validate=`name:required, phone:required, email:email:required, class:required:minLength=`1`, membership:required:minLength=`1`, text:required:stripTags`
May be worth posting up your tpl too.
Out of curiosity does it work if you take out the validation?
&validate=`name:required, phone:required, email:email:required, class:required:minLength=`1`, membership:required:minLength=`1`, text:required:stripTags`
I suspect that the extra backticks '`' may be causing the validation statement to end and then start again.
Name: [[+name]]<br /> Phone Number: [[+phone]]<br /> E-Mail: ([[+email]])<br /> <br /><br /> Class: [[+class]]<br /> Are you a member? [[+membership]]<br /> Membership Number (If Member): [[+membernumb]]<br /> Mailing Address: [[+text]] <br /><br /> ---------------------------------<br /> * This message was sent from the contact form
I had some common problems while ago and I could solve this issue by adding &emailToName option to the snippet call.
Quote from: donquicky at Mar 21, 2017, 01:22 PMI had some common problems while ago and I could solve this issue by adding &emailToName option to the snippet call.
If you are talking about adding this directly to the snippet area, that would be out of my expertise as I do not know PHP coding. I sometimes can manage to tweak a bit but wouldn't know where to add this definition.
[[!FormIt? &hooks=`recaptcha,spam,email,redirect` &emailSubject=`Class Registration Form` &submitVar=`go` &emailTpl=`MyEmail` &emailTo=`[email protected]` &emailToName=`some name like: Mister Quick` &redirectTo=`56` &validate=`name:required, phone:required, email:email:required, class:required:minLength=`1`, membership:required:minLength=`1`, text:required:stripTags` &recaptchaTheme=`white` ]]
No, just add it as option to the FormIt call this:
[[!FormIt? &hooks=`recaptcha,spam,email,redirect` &emailSubject=`Class Registration Form` &submitVar=`go` &emailTpl=`MyEmail` &emailTo=`[email protected]` &emailToName=`some name like: Mister Quick` &redirectTo=`56` &validate=`name:required, phone:required, email:email:required, class:required:minLength=`1`, membership:required:minLength=`1`, text:required:stripTags` &recaptchaTheme=`white` ]]