Browser event

In After submit, turn on Dispatch browser event and set the Event name (default optinflare_success).

The event is dispatched on document and window. Its detail contains formId, formTitle, displayType, contactEmail, contactFirstName, contactLastName, lists, tags, leadMagnet, customFields and response.

JavaScript
document.addEventListener( 'optinflare_success', ( event ) => {
	console.log( event.detail.formId, event.detail.contactEmail );
} );

Last update