Solution: Google recaptcha on a Wix Code form

Hi KAren. I believe you ask how to link the Google result to your form. Well, to have a secure solution, I would do this. I would disable the Submit-button by default.In the " if (boolOK) " part I would do 2 things:

  1. enable the button
    2)call a backend function with all data from the form PLUS the google verification, check if all is well there (= in backend code), then write data to db using wix-data, set a result back to frontend and respond to that (either an error or a redirect to another (Thank you page).

The second step is important, DO NOT rely on front-end code only.