SomethingOn
SomethingOn

Reputation: 10911

Can you add an After Validation javascript callback for Contact Form 7?

After the form is submitted if the user failed to enter the required fields I want to add additional javascript goodies, but can't figure out where to add my own custom callback after the form has been validated/posted.

Is this possible without hacking the module?

Thanks, Greg

Upvotes: 1

Views: 4927

Answers (1)

Jason McCreary
Jason McCreary

Reputation: 73011

This plugin seems to use JavaScript validation, so you could add your own custom JavaScript validation by hooking into the submit event (for example). Since this is JavaScript, you won't be hacking the module.

I suggest using Firebug, or some other DOM inspector, to determine the best place to bind your events.

Also, check out the plugin docs. There is also a forum which may provide more specific help.

Upvotes: 2

Related Questions