Vanilla js eventlistener

Is there a way to make the handler gform_confirmation_loaded works with vanilla JavaScript?

document.addEventListener(‘gform_confirmation_loaded’, () => {

});

The gform_confirmation_loaded event is triggered by jQuery. However, listening for this event using vanilla JavaScript can be challenging as jQuery’s custom events do not directly correspond to native JavaScript events.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.