We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37619
    • 79 Posts
    I'm using Revo 2.2.2

    Hi Everyone,

    I have a bit of an issue: I've managed to integrate Google's reCaptcha using the "recaptcha" hook in the FormIt call, and it's working as it should.

    However, if I don't enter anything in the reCaptcha, or if I don't enter the same words as the ones that I have to type in, it refreshes the page and erases all the data I had already entered in the fields. This is somewhat acceptable when filling out a form that only has a few fields, but one form has about 30 fields and I wouldn't to lose a client's contact just because he wouldn't want to have to refill the form over again.

    Can anyone help me out with this?

    Thanks.

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

      Jean-Marc Buytaert (@jmbuytaert)

      MODX truly is the greatest thing that's ever happened to the Internet.
    • discuss.answer
      • 37619
      • 79 Posts
      Figured it out!

      Just add
      [[!FormItRetriever]]
      before or after the FormIt call, and then just put
      [[!+fi.input_name]]
      in the input's value. Works like a charm.
        Jean-Marc Buytaert (@jmbuytaert)

        MODX truly is the greatest thing that's ever happened to the Internet.