We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40231
    • 16 Posts
    We have had our site for some time, all along with FormIt and it worked. At some point it appears to have died a horrible death. As it sits right now it is not processing the forms correctly at all.

    For example if I leave all the fields blank and hit submit, sometimes it will give me errors, sometime it will not. If I put data in it will return to the same screen but nothing appears to have happened. If I put some data in but leave a required field blank it will clear fields but show an error. Sometimes it will put back in old data like there is a cache issue.

    Its acting really odd.

    It will at no point send an email.

    I have used QuickMail to validate my email functions are working.

    I have removed and reinstalled it.

    v2.2.10

    Any help?

    Chunck Code
    [[!FormIt? &hooks=`emailParse,email,redirect`
    &emailTo=`[[+emailTo]]`
    &emailTpl=`ContactUsEmail`
    &emailSubject=`[[+subject]]`
    &redirectTo=`108`
    &validate=`name:required,
    email:email:required,
    subject:required,
    text:required:stripTags,
    topic:required`]]
    
    
    <h2>Email Contact Form</h2>
    [[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
    
    <form class="form" action="[[~[[*id]]]]" method="post">
    <table>
    <tbody>
    <tr>
    <td><label for="topic">Topic:</label></td>
    <td><select name="topic"> 
    <option selected="selected" value="">Select an topic...</option>
    <option value="billing" [[!+fi.topic:FormItIsSelected=`billing`]]>Billing question?</option>
    <option value="service" [[!+fi.topic:FormItIsSelected=`service`]]>Water service question?</option>
    <option value="wq" [[!+fi.topic:FormItIsSelected=`wq`]]>Water quality question?</option>
    <option value="eff" [[!+fi.topic:FormItIsSelected=`eff`]]>Water efficiency question?</option>
    <option value="leak" [[!+fi.topic:FormItIsSelected=`leak`]]>Report a leak</option>
    <option value="employment" [[!+fi.topic:FormItIsSelected=`employment`]]>Employment question?</option>
    <option value="clerk" [[!+fi.topic:FormItIsSelected=`clerk`]]>Clerk to the Board question?</option>
    <option value="purchasing" [[!+fi.topic:FormItIsSelected=`purchasing`]]>Purchasing question?</option>
    <option value="engineering" [[!+fi.topic:FormItIsSelected=`engineering`]]>Engineering question?</option>
    <option value="rebates" [[!+fi.topic:FormItIsSelected=`rebates`]]>Rebates</option>
    <option value="comments" [[!+fi.topic:FormItIsSelected=`comments`]]>Website comments</option>
    <option value="other" [[!+fi.topic:FormItIsSelected=`other`]]>Other</option>
    </select><span class="error">[[!+fi.error.topic]]</span></td>
    </tr>
    <tr>
    <td><label for="name">Name:</label></td>
    <td><input id="name" type="text" name="name" value="[[!+fi.name]]" /><span class="error">[[!+fi.error.name]]</span></td>
    </tr>
    <tr>
    <td><label for="email">Email:</label></td>
    <td><input id="email" type="text" name="email" value="[[!+fi.email]]" /> <span class="error">[[!+fi.error.email]]</span></td>
    </tr>
    <tr>
    <td><label for="subject">Subject:</label></td>
    <td><input id="subject" type="text" name="subject" value="[[!+fi.subject]]" /> <span class="error">[[!+fi.error.subject]]</span></td>
    </tr>
    <tr>
    <td><label for="text">Message:</label></td>
    <td><textarea id="text" name="text" rows="7" cols="55">[[!+fi.text]]</textarea><span class="error">[[!+fi.error.text]]</span></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><address class="form-buttons"><input type="submit" value="Send Contact Inquiry" /></td>
    </tr>
    </tbody>
    </table>
    [ed. note: t3chn0crat last edited this post 10 years, 6 months ago.]
      • 40231
      • 16 Posts
      I found the issue. I was caching the chunck. Set to not be cached and the problem is solved.