I'm trying to block some domains. The form display well but doesn't block anything... Could you please tell me what's wrong with this code?
hbspt.forms.create({
portalId: "xxxxxx",
formId: "xxxxxxxxxxxx",
css: "",
blockedDomains: ["domain1.com", "domain2.com"],
translations: {
en: {
required: "Please fill the required field.",
missingSelect: "Please select an option.",
forbiddenEmailDomain: "Please enter your business address",
manuallyBlockedEmailDomain: "Please enter your business address",
submitText: "WATCH NOW"
}
}
});
I tested this a bunch in my own portal and it wasn't working at first. I then slowly deleted and re-added elements of your code. This code you sent over, and the code I used here in my portal seemed to work, but then it stopped working again. I'm going to have to keep digging into this one and update you when I have a solid answer.