Hi,
I have i problem with formit, before it was working and now it's totally not working.
My Setup: MODX 2.1.4pl with formit ver. 2.03 using google SMTP
My form:
[[!FormIt?
&hooks=`math,spam,email,redirect`
&redirectTo=`2`
&emailTpl=`email-chunk`
&emailTo=`
[email protected]`
&emailSubject=`uploaded file`
&validate=`name:required,
email:required,contact:required,address:required,city:required,state:required,contact_attachment:required,message:required:stripTags`
]]
<p>[[!+fi.error.error_message:notempty=`<p>[[!+fi.error.error_message]]</p>`]]
<form id="form1" class="cmxform" method="post" action="[[~[[*id]]]]" enctype="multipart/form-data">
<fieldset><legend>Contact form</legend>
<input type="hidden" name="nospam:blank" value="" />
<label for="name">
Name:
<span class="error">[[+fi.error.name]]</span>
</label>
<input type="text" name="name" id="name" value="[[+fi.name]]" />
<label for="address">
Address:
<span class="error">[[+fi.error.address]]</span>
</label>
<input type="text" name="address" id="address" value="[[+fi.address]]" />
<label for="city">
City:
<span class="error">[[+fi.error.city]]</span>
</label>
<input type="text" name="city" id="city" value="[[+fi.city]]" />
<label for="state">
Select State:
<select name="state">
[[!FormItStateOptions? &selected=`[[!+fi.state]]`]]
</select>
</label>
<label for="zipcode">
Zip Code:
<span class="error">[[+fi.error.zipcode]]</span>
</label>
<input type="text" name="zipcode" class="small" value="[[+fi.zipcode]]" />
<label for="contact">
Contact No:
<span class="error">[[+fi.error.contact]]</span>
</label>
<input type="text" name="contact" id="contact" value="[[+fi.contact]]" />
<label for="email">
Email:
<span class="error">[[+fi.error.email]]</span>
</label>
<input type="text" name="email" id="email" value="[[+fi.email]]" />
<label for="contact_attachment">Upload your own design with this format: PSD,AI,CDR,JPEG or PNG24</label><em>(max size 5MB)</em>
<input type="file" name="contact_attachment" value="[[!+fi.contact_attachment]]" />
<label for="message">
Your Message:
<span class="error">[[+fi.error.text]]</span>
</label>
<textarea name="message" id="text" cols="55" rows="20" value="[[+fi.text]]">[[+fi.text]]</textarea>
<br class="clear" />
<label>Please solve this math to avoid spam on our system.
<h3>[[!+fi.op1]] [[!+fi.operator]] [[!+fi.op2]]?</h3></label>
[[!+fi.error.math]]
<input type="text" name="math:required" value="[[!+fi.math]]" />
<input type="hidden" name="op1" value="[[!+fi.op1]]" />
<input type="hidden" name="op2" value="[[!+fi.op2]]" />
<input type="hidden" name="operator" value="[[!+fi.operator]]" />
<br class="clear" />
<div class="form-buttons"
<p class="submit"><button type="submit"></button></p>
</div>
</form>
Upon sending the standard form it's nothing happened, no redirect, no error validations & not sending any data.
Please help me to solved this problem...
Thanks