We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi!
    Im using formit with recaptchav2. Unfortunately my client wants to switch back to use the more "oldschool way" with letters and numbers instead of images. Can anyone help me on how to achieve this?
    Or should i use another package to achieve this? Thanks for helping!

    This question has been answered by dan971. See the first response.

      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
    • discuss.answer
      • 40833
      • 52 Posts
      Hello, not sure if you have this figured out or not yet, but since you are using FormIt, it has built-in hooks for the original version of Recaptcha.

      https://rtfm.modx.com/extras/revo/formit/formit.hooks/formit.hooks.recaptcha

      Here's an example of how to set up the hook and placeholders:

      [[!FormIt?
       &hooks=`recaptcha,email,redirect`
       &redirectTo=`[[*id]]` 
       &emailTpl=`tpl_contact_form_email`
       &emailTo=`[[++email_contact_form]]`
       &emailFrom=`[[++emailsender]]`
       &emailSubject=`Correspondence from [[++domain]]` 
       &validate=`fullname:required,
            email:email:required,
            comments:required:stripTags,
            phone:required` 
      ]]


      Copy these placeholders somewhere within your form:
      [[!+fi.error.recaptcha:notempty=`<div class="error">[[!+fi.error.recaptcha]]</div>`]]
      
      [[!+formit.recaptcha_html]]
        • 36446
        • 184 Posts
        Thank you very much dansig! That worked!!!
          https://www.beautyislife-shop.de - premium make-up!
          https://www.topsterne.de - sell it here!
          ---------------------------------------------------------