Run A JavaScript Callback Function When A Caldera Form Submits

A picture of the Newberry Caldera

When ever the form submits, the ‘cf.form.submit’ event is triggered. You can use this to run a JavaScript callback function after the form submits.

Where Does This Code Go?

When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.

Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.

Learn More