Pro Forms not catching bricks/form/success hook

The form submission is working fine, but that is it. It does nothing after a successful submission. I get the XHR return of success but nothing with my event listener.

document.addEventListener('bricks/form/success', function(event) {
  console.log('Form submission success event:', event);
});

is returning nothing for me… am I missing something?

The native Bricks form events may not work with Pro Forms. You should use the Bricksforge Panel events. Currently, there is only a “Form Submit” event, which also triggers not successful submissions. I’ll include a toggle to trigger only successful events soon.

1 Like