Solution: Google recaptcha on a Wix Code form

Familiar code: that´s my example code. There is a lot missing: you have not connected the added reCaptcha-logic to the yes/no saving of the data. There are 2 ways to do that:

  • doing a .save() in code when repaptcha=OK on the dataset in front end code. This is DANGEROUS and I specifically warn against it in my article, so I won´t even go there:
  • doing an Insert using wix-data in the backend, calling a fuction that passes all form data to this backend function.
    Last method is how it should be done, but it involved some pretty interesting coding: you cannot click, drag and drop your way out of it, This has got little to do with the recaptcha being complex, it has to do with security.
    I fear this is going to be too complex for you, but if you want to prove me wrong, try, and if you get stuck somewhere, I´ll try to help you BUT NOT WHEN YOU TRY TO SAVE FROM THE FRONT END.
    Good luck, sorry that I do not have better news.