Not sure if this is the right place for this question, but I don’t see an area dedicated to FormIt.
I followed the instructions for FormIt at
http://svn.modxcms.com/docs/display/ADDON/FormIt but it’s not working. The form looks fine on the page, I’ve got it sending it to my email address but the emailFrom portion is blank and the message is not getting sent either. Just a blank email. On the FormIt snippet, under properties, all I’ve done is added "Contact Form" as the value for email subject because it said if you have email set as a hook then you have to specify a subject. Any suggestions?
This is my code:
[[FormIt?
&hooks=`email,redirect`
&emailTpl=`myEmailChunk`
&emailTo=`
[email protected]`
&redirectTo=`4`
]]
<h2>Contact Form</h2>
<p>[[+fi.error.message]]</p>
<form action="[[~[[*id]]]]" method="post" class="form">
<input type="hidden" name="nospam:blank" value="" />
<p><label for="name">
Name:
<span class="error">[[+fi.error.name]]</span>
</label>
<input type="text" name="name:required" id="name" value="[[+fi.name]]" /></p>
<p><label for="email">
Email:
<span class="error">[[+fi.error.email]]</span>
</label>
<input type="text" name="email:email:required" id="email" value="[[+fi.email]]" /></p>
<p><label for="subject">
Subject:
<span class="error">[[+fi.error.subject]]</span>
</label>
<input type="text" name="subject:required" id="subject" value="[[+fi.subject]]" /></p>
</p><label for="text">
Message:
<span class="error">[[+fi.error.text]]</span>
</label>
<textarea name="text:required:stripTags" id="text" cols="55" rows="7">[[+fi.text]]</textarea></p>
<br class="clear" />
<div class="form-buttons">
<input type="submit" value="Send Contact Inquiry" />
</div>
</form>
Please help! My client is wanting a contact form pronto.