• Resolved danushkaj91

    (@danushkaj91)


    Hi, I’m trying to add a custom animation on form submission as some users seem to not see the button animation on submission.

    I’ve tried fluentform_submission_success on the plugin’s custom JS section as well as on my custom js file but they dont trigger. Is there any other way to do this ?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    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

    Thread Starter danushkaj91

    (@danushkaj91)

    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
    });
    Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.