Loading...
Started by Chris Sciolla • Jun 10, 2025 3:43 PM
Total Replies
7
Participants
3
Activity
Quiet
Duration
3:43 PM
Thread starter
onFormReady message from HubSpot. following ZB's docs works. using code like below does not. any thoughts why these two methods differ?if (data.eventName === "onFormReady") {
const config = {
apiKey: 'xxxxxxxxxxxxxx',
disableSubmitOnError: true,
hubspotFormId: formId // pulled from data.id earlier
};
const script = document.createElement('script');
script.src = 'https://www.zerobounce.net/widget/ZeroBounceHubSpotValidationWidget.js';
script.async = true;
script.onload = function() {
if (typeof initializeZeroBounce === 'function') {
initializeZeroBounce(config);
} else {
console.error('initializeZeroBounce function not found.');
}
}
document.head.appendChild(script);7 messages in thread