Execute JS function when field is changed?
-
Hi there!
I’m trying to determine how I can execute a custom JavaScript function when a CF7 textfield is exited or the field is changed.
Normally this could be achieved via code like:
<input type=”text” onblur=”myFunction()”>However I can’t determine how to add an onblur through the Contact Form 7 interface, or if this is even possible.
My goal is to custom validate a series of textfields and display a green checkmark or red X beside each depending on whether the value is valid or not, as each value is entered – even before the user has even submitted the form.
Any advice on how to do this would be greatly appreciated!
The topic ‘Execute JS function when field is changed?’ is closed to new replies.