We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45767
    • 13 Posts
    I'm having a problem getting reCaptcha to show on my form.
    Added my public and private keys into the system settings and they are correct, cleared my cache, tried different browsers etc but the reCaptcha validation just won't show up.
    Here's my code:
    [[!FormIt?
    &hooks=`recaptcha,spam,email`
    &emailTpl=`sentEmailTpl`
    &emailSubject=`Message from Website`
    &emailTo=`[email protected]`
    &validate=`name:required:minLength=`2`,
          email:email:required,
          message:required`
    ]]
    <div class="formit">
    [[!+fi.validation_error_message:notempty=`<p>[[!+fi.validation_error_message]]</p>`]]
    <form class="form" action="[[~[[*id]]]]" method="post">
      <p>
        <input type="text" name="name" id="name" value="[[!+fi.name]]" placeholder="Name"/>
      </p>
      <p>
        <input type="text" name="email" id="email" value="[[!+fi.email]]" placeholder="E-Mail" />
      </p>
      <p>
        <input type="text" name="phone" id="phone" value="[[!+fi.phone]]" placeholder="Phone Number" />
      </p>
      <p>
        <textarea name="message" placeholder="Message">[[!+fi.message]]</textarea>
      </p>
    
    [[!+formit.recaptcha_html]]
    [[!+fi.error.recaptcha]]
      <p class="submit">
        <input type="submit" value="Send" />
      </p>
    </form>
    </div>
    


    Any help appreciated.
      • 8274 ☆ A M B ☆
      • 222 Posts
      would calling the
      [[+formit.recaptcha_html]]
      placeholder as uncached be an issue (the documentation of Formit has that placeholder called as cached)