Hi all, So what I am trying to do is integrate googles reCAPTCHA on to a web form, first thing I should mention is that this web form is created automatically by our CRM software(customer relation management software) and also this form is created with validation of the fields. In the form attributes, the “onsubmit” event is set to call a javascript function and after all fields are validated it will submit the form to the CRMs database.
My question is how would I interrupt that “onsubmit” event or implement it in such a way that it also checks the reCATPCHA is valid or not and as well as the required fields, and if both are okay, submit the form?
I have posted links to the source code(am new here and dont know how to post code on this post yet ?)
web form by CRM software – [URL=”https://gist.github.com/saadq12/e6fd1e94d4d3aca45fe3951f0e8a0ac5″]https://gist.github.com/saadq12/e6fd1e94d4d3aca45fe3951f0e8a0ac5
PHP code for reCAPTCHA validation – [URL=”https://gist.github.com/saadq12/a8c596ab1db8a98319be153a70aa43ff”]https://gist.github.com/saadq12/a8c596ab1db8a98319be153a70aa43ff
please let me know if you guys have any tips/suggestions/feedback or maybe I am doing something wrong, I am a novice web developer (as if it didn’t show already) thank you!