Using the JavaScript Events API

The Convert Forms JavaScript Events API is extremely powerful, providing a set of events on which you can bind your custom Javascript functionality to further extend Convert Forms to suit your specific needs.

Events

Success

This event fires once the form has received a successful response after submission.

$("#cf_1").on("success", function() {
	// your code
});

Fail

This event fires once the form has received an unsuccessful response after submission.

$("#cf_1").on("fail", function() {
	// your code
});

BeforeSubmit

This event fires at the exact instant before the form starts the submission process.

$("#cf_1").on("beforeSubmit", function() {
	// your code
});

AfterSubmit

This event fires at the exact instant after the form has completed the submission process.

$("#cf_1").on("afterSubmit", function() {
	// your code
});

Notes

Document ready combined with self enclosure

Please note that any of the above examples will not work unless you wrap it with the Combined Document Ready - Self Enclosure snippet.

jQuery(function($) {
	// your code goes here
});

Use the correct ConvertForm ID

The above code blocks refair to the ConvertForm with id #1 for demonstration purposes. Replace this number with your ConvertForm's id.

LIMITED SALE 20% off any Tassos.gr extension. Coupon code ABCEKDJUEO