Custom form alert does not work

1 reply · opened Jul 15, 2024

BbanaszloJul 15, 2024

Hi,
I have used the example from documentation to set up a custom form alert:
https://docs.semicolonweb.com/docs/forms/alerts/

this 'formSubmitSuccess' does not seem to be working:

jQuery('#template-contactform').on( 'formSubmitSuccess', function(data){
// Your JS Codes here
console.log(data);
});

In the example on live url the event

jQuery('#widget-subscribe-form').on( 'formSubmitSuccess'

does not fire any event. I have coded "alert('test');" there

SSemicolon WebSTAFFJul 25, 2024

Hello,

Currently the Form Events are only available for the Main Form Functionality (and not Subscription Forms) .form-widget Elements. So the #widget-subscribe-form will currently not work. We have added this in the updated file, you can consider using this replacing the older js/functions.bundle.js File.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard