We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44649
    • 68 Posts
    Hi,

    Having a problem with FormIt when you press submit button on the resource page it just loads a blank page (with the same friendly URL/ID). It also skips validation and goes directly to the a blank page if you don't fill anything in, and there are also no errors in the manager.

    Have tried:
    - Reinstalling FormIt
    - Turning off Friendly URL's
    - Using FormIt code that works on another site

    Server is Running PHP 5.4.25

    Any suggestions?
    Thanks
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Can you show us your FormIt call? Did you remember to change the redirect resource ID from the other site's code?

      Redirecting to itself is FormIt's way of telling you that it's not validating. The blank page however, is weird so showing your code (all of it) is the best way to get help here.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 44649
        • 68 Posts
        Getting a HTTP Error 500 Internal server error in IE (none of the modern browsers show this, just a blank white page) so we're guessing it's a server error.

        Does anyone know if there are any prerequisites hosting modules or settings for FormIt to work?

        Here's the FormIt code:
        [[!FormIt?
        &hooks=`spam,email,redirect`
        &emailTpl=`email-general-tpl`
        &emailUseFieldForSubject=`1`
        &emailTo=`[email protected]`
        &redirectTo=`43`
        &emailSubject=`Contact Form`
        &validate=`name:required,email:email:required,school:required,telnumber:required,text:required:stripTags`
        ]]
        <div class="row">
        
          <div class="twelve columns">
            [[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
            <form id="contact_form" action="[[~[[*id]]]]" method="post" class="custom">
              <input type="hidden" name="nospam:blank" value="" />
        
              <div class="row">
        
                <div class="four columns">
                  <label>
                    Name
                    <span class="error">[[!+fi.error.name]]</span>
                  </label>
                  <input type="text" name="name" id="name" value="[[!+fi.name]]" placeholder="" class="eight" /> 
                </div>
        
                <div class="four columns">
                  <label>
                    Email
                    <span class="error">[[!+fi.error.email]]</span>
                  </label>
                  <input type="text" name="email" id="email" value="[[!+fi.email]]" placeholder="" class="eight" />
                </div>
        
        
                <div class="four columns">
                  <label>
                    Telephone
                    <span class="error">[[!+fi.error.telnumber]]</span>
                  </label>
                  <input type="text" name="telnumber" id="telnumber" value="[[!+fi.telnumber]]" placeholder="" class="eight" />
                </div>
        
                <div class="four columns">
                  <label>
                    School
                    <span class="error">[[!+fi.error.school]]</span>
                  </label>
                  <input type="text" name="school" id="school" value="[[!+fi.school]]" placeholder="" class="eight" />
                </div>
              </div>
        
        	 <div id="message">
             	 <label>
                 Message
                 <span class="error">[[!+fi.error.text]]</span>
             	 </label>
             		 <textarea name="text" id="text" value="[[!+fi.text]]" placeholder="">[[!+fi.text]]</textarea>
             	 <input type="submit" value="Send" class="button small" />
        		 <div class="clear"></div>
        	  </div>
        
            </form>
        
          </div>
        </div>
        <div class="clear"></div>