I have checked and rechecked all of my fields, snippet calls, etc., but I’m stumped here. I’m beginning to wonder if its my client’s iffy web host...
This is just a super-simple contact form. All of the fields validate properly. A successful submission redirects to the proper page and sends out the email just fine. Failed validation bounces back to the form as it should with all the fields repopulated... but no error messages are returned.
I’m hoping someone sees a typo or something stupid that I missed... I’m off to uninstall and reinstall Formit (I’ve had issues with this server before).
Here’s my code:
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`contact-email-tpl`
&emailTo=`[email protected]`
&emailSubject=`[Web Contact Form]`
&emailFrom=`[[+email]]`
&emailFromName=`[[+name]]`
&emailReplyTo=`[[+email]]`
&emailReplyToName=`[[+name]]`
&redirectTo=`15`
&validate=`workemail:blank,name:required,email:email:required,text:required:stripTags`
]]
<h1>Contact Us</h1>
[[!+fi.error.error_message:notempty=`<div id="errorMsg"><h3>Whoops!</h3><ul><li>[[!+fi.error.error_message]]</li></ul></div>`]]
<form action="[[~[[*id]]]]" method="post" class="uniForm">
<input type="hidden" name="workemail" value="" />
<fieldset class="inlineLabels">
<div class="ctrlHolder [[+fi.error.name:notempty=`error`]]">
<label for="name"><em>*</em> Full Name</label>
<input type="text" id="name" name="name" value="[[+fi.name]]" size="35" class="textInput [[+fi.error.name:notempty=`error`]]">
[[+fi.error.name:notempty=`<p class="formHint">[[+fi.error.name]]</p>`]]
</div>
<div class="ctrlHolder [[+fi.error.email:notempty=`error`]]">
<label for="email"><em>*</em> Email Address</label>
<input type="text" id="email" name="email" value="[[+fi.email]]" size="35" class="textInput [[+fi.error.email:notempty=`error`]]">
[[+fi.error.email:notempty=`<p class="formHint">[[+fi.error.email]]</p>`]]
</div>
<div class="ctrlHolder">
<label for="phone">Phone Number</label>
<input type="text" id="phone" name="phone" value="[[+fi.phone]]" size="35" class="textInput">
</div>
<div class="ctrlHolder [[+fi.error.text:notempty=`error`]]">
<label for="text"><em>*</em> Message</label>
<textarea id="text" name="text" rows="25" cols="25" class="[[+fi.error.text:notempty=`error`]]" value="[[+fi.text]]">[[+fi.text]]</textarea>
[[+fi.error.text:notempty=`<p class="formHint">[[+fi.error.text]]</p>`]]
</div>
<div class="buttonHolder"><button type="submit" class="primaryAction">Send</button></div>
</fieldset>
</form>