on-internet
← Community

Calling a JavaScript function on Contact Form 7 submission

Stack Overflow ·

I'm using Contact Form 7 in Wordpress, with Skin Beauty as the theme. What I want to do is to call a specific JavaScript function when the form I created is submited. In my HTML code I am creating a form like this: <form onsubmit="checkvalue()"> ... </form> And at the end of the body of my HTML code, I am creating a JavaScript function with the validation I want to do on the form: <script language="JavaScript" type="text/javascript"> function checkvalue() { ... } </script> I tried the code in another theme (Twenty Thirteen) - with Contact Form 7 - and the weird thing is that there was no probl

Comments

Sign in or sign up to comment and upvote.

No comments yet.