The after-form-submit event is fired after the submission of a sign-up block form. This is one of the various events Wisepops can trigger as part of our JS Callbacks feature.

Prevent action after submission

The action after the form submission can be prevented, by calling preventDefault() on the event:

wisepops('listen', 'after-form-submit', function(event) {

Preventing this event will only cancel the final action (load new page, scroll to anchor, close popup). The filled data will still be collected. 

Please refer to the before-form-submit event to prevent the whole form submission.

Event target

The targeted element ( is the same element as the native submit event target.

This means that you can easily retrieve the fields of your form (and their values) by using['Field ID'] . To retrieve the email value, you will write:

var emailValue =['email'].value;

Use cases

Did this answer your question?