Last active
September 11, 2024 11:52
-
-
Save jennlee20/c4a370edbc399df4b9015a9c0e2a7b09 to your computer and use it in GitHub Desktop.
wordpress-fluentform-javascript-triggers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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