Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wordpress-fluentform-javascript-triggers.js
$form.on('ff_to_next_page', function(activeStep, form) {
console.log(activeStep);
// You can run your own JS on step change
});
$form.on('ff_to_prev_page', function(activeStep, form) {
console.log(activeStep);
// You can run your own JS on step change
});
$form.on('calculate_payment_summary', function(element) {
console.log(element);
// You can run your own JS on step change
});
$form.on('repeat_change', function(element) {
console.log(element);
// You can run your own JS on step change
});
$form.on('do_calculation', function() {
console.log();
// You can run your own JS on step change
});
$form.on('show_element_error', function(element, message) {
console.log();
// You can run your own JS on step change
});
$form.on('fluentform_submission_success', function() {
// This will run on form submission success
setTimeout(
function()
{
$(".jet-popup__close-button").click();
}, 4000);
});
$form.on('fluentform_submission_failed', function() {
// This will run on form submission failed
});
$form.on('fluentform_init', function() {
// This will run on form submission failed
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment