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

Do you have any approximate timeline on how soon it will take?

The success trigger already has been implemented with 3.0 (Node Editor) :slight_smile:
If you want to create a custom event listener in javascript, use brf_submit.

1 Like

You’re right. I’m sorry. I was looking for On Success, and didn’t think it would be inside of On Submit. Thank you for your response.

1 Like