We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37523
    • 141 Posts
    I am attempting to use FormIt 2.2.10 within Revo 2.50 and it is not working.

    I have tested my servers ability to send email with QuickEmail. All working fine with no errors.

    The contact form can be found on the web at http://globalstories.com.au/contact.html

    No errors seem to occur in the error_log and Error Log.

    The form will also validate when there is missing or incorrect data entry.

    Where am I going wrong?

    Many thanks in advance.

    The following is my code:

                [[!FormIt?
                   &hooks=`recaptcha,spam,email,redirect`
                   &emailTpl=`MyEmailChunk`
                   &emailSubject=`Query from Global Stories website`
                   &emailTo=`[email protected]`
                   &redirectTo=`83`
                   &validate=`name:required,
                       company:required,
                      email:email:required,
                      message:required`
                ]]
            <form class="form " action="[[~[[*id]]]]" method="post">
            	<input type="hidden" name="nospam:blank" value="[[+fi.nospam]]" />
            	<fieldset>
            		<div class="" id="field1_wrap">
            			<label for="name" title="Name">Name *</label>
            			<input type="text" name="name" id="name" value="" class="text " size="40">
            			<span class="error">[[!+fi.error.name]]</span>
            		</div>
            		<div class="" id="field6_wrap">
            			<label for="phone" title="Phone">Phone</label>
            			<input type="text" name="phone" id="phone" value="" class="text " size="40">
            		</div>
            		<div class="" id="field5_wrap">
            			<label for="company" title="Company">Company name *</label>
            			<input type="text" name="company" id="company" value="" class="text " size="40">
            			<span class="error">[[!+fi.error.company]]</span>
            		</div>
            		<div class="" id="field2_wrap">
            			<label for="email" title="Email">Email *</label>
            			<input type="text" name="email" id="email" value="" class="text " size="40">
            			<span class="error">[[!+fi.error.email]]</span>
            		</div>
            		<div class="" id="field3_wrap">
            			<label for="message" title="Message">Message *</label>
            			<textarea id="message" class="textarea " name="message"></textarea>
            			<span class="error">[[!+fi.error.message]]</span>
            		</div>
            	</fieldset>
            	<br class="clear" />
                [[!+formit.recaptcha_html]]
                [[!+fi.error.recaptcha]]
                <br class="clear" />
            	<div class="actions">
            		<input type="submit" name="submit1" value="Send contact" class="btn primary">
            	</div>
            </form>

    This question has been answered by multiple community members. See the first response.

      Glyn Szasz
      Sydney, Australia

      Happy to help (when can) and happy to learn

      If you are a Sydney based MODX developer would love to hear from you. Please contact me.
    • discuss.answer
      • 36549
      • 572 Posts
      Can you post what you have in your MyEmailChunk?
      Is your Recaptcha displaying OK - have you added the keys to System Settings?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 37523
        • 141 Posts
        Sorry missed posting the MyEmailChunk.

        <p>Jaqui,</p>
        <p>[[+name]] has sent you a message with the following details:</p>
        <p>Company Name: [[+company]]<br>
        Phone: [[+phone]]<br>
        Email: [[+email]]<br>
        Message:</p>
        <p>[[+message]]</p>
        <p> </p>
        <p>Regards,<br>
        Global Stories contact form</p>


        The Recaptcha is not showing. How do I get keys for Recaptcha? I have not set any.
          Glyn Szasz
          Sydney, Australia

          Happy to help (when can) and happy to learn

          If you are a Sydney based MODX developer would love to hear from you. Please contact me.
          • 36549
          • 572 Posts
          Recaptcha could be your problem in that case. Try googling or go to: https://www.google.com/recaptcha/intro/index.html
          You will have the option of setting up accounts for a domain and generating the keys. You can then enter them in System Settings/Formit.
            www.9thwave.co.uk
               WEB | DESIGN | PRINT
          • discuss.answer
            • 37523
            • 141 Posts
            Many thanks 9thwave. Recaptcha was the problem. I setup the keys and entered them and all works fine now. Thank you.
              Glyn Szasz
              Sydney, Australia

              Happy to help (when can) and happy to learn

              If you are a Sydney based MODX developer would love to hear from you. Please contact me.