Have another question about IAB?
';
if (modalBody.length) {
modalBody.append(htmlContent);
} else {
$(parentId).append(htmlContent);
}
window.oneTrustBootstrapped[formId] = true;
console.info("hsforms can't show due to onetrust settings for", formId);
}
// check if the user is in the EEA or UK and if OK, show the form
window.addEventListener("OneTrustGroupsUpdated", handleHubspotForm);
// OneTrustGroupsUpdated apparently doesn't always fire. So, attempt to also attach an event to domready.
window.addEventListener("DOMContentLoaded", handleHubspotForm);
// since OneTrustGroupsUpdated doesn't seem to fire sometimes, set a last-ditch-effort fallback
setTimeout(handleHubspotForm, 5000);
})();