Hello @danushkaj91,
We have tested the event and it seems to be working fine, kindly check the video. You may try the below code and add your own logic
// Event on form submission success// You can paste this script to Form's custom JS Box
$form.on('fluentform_submission_success', function() {
// You can run your own JS and will be run on successful form submission
});
Let us know the update.
Thank you
Hi, Thanks for the reply. I was able to get the loading screen to show up via $(“.ff-btn-submit”).click(function() and to hide the loading screen via $form.on(‘fluentform_submission_success’, function().
My form includes validation (required fields and email validation) and if validation fails, the loading screen does not hide as fluentform_submission_success is not triggered. I have added fluentform_submission_failed, but this does not work.
Do you have a solution for this? (please see the code below)
Thanks
$(".ff-btn-submit").click(function(){
//show loading screen (WORKING)
});
$form.on('fluentform_submission_success', function() {
//hide loading screen (WORKING)
});
$form.on('fluentform_submission_failed', function() {
//hide loading screen (NOT WORKING) when validation fail
});
Hello there,
I have also checked the event fluentform_submission_failed event and it is working fine, please see this Video. The event will be triggered whenever the form submission is failed.
Thank you
-
This reply was modified 1 year, 10 months ago by
Amimul Ihsan.