Is it possible to create a global domain block list using the Forms API?
Goal: An app to integrate into the email field blocked domain list. We have many forms and every time we need to add a domain to block the list has to be copied and pasted manually.
Details: I do not want to have to have forms recreated outside of Hubspot. The idea is that there is a global list of domains to block, or it could pull the domain from an existing hubspot list (ex: competitors). Possibly a check box on the form to tell it to use the global block list, similar to the "Block Free Domains" checkbox. Or a list of forms to use the global domain block on.
"validation": {
// A set of options controlling the validation for the field
// NOTE: These options should NOT be modified through the API. Any validation should be set up in the form settings in HubSpot.
"name": "",
"message": "",
"data": "",
"useDefaultBlockList": false,
"blockedEmailAddresses": []
},
Thank you for sharing such a detailed use case. You're spot on to say that it is currently not possible to block email domains on form at a portal level and looking through the ideas you shared, I do have some thoughts around it:
1. When looking to update the block email field using the Update an existing form | Forms endpoint, you'd still need to copy and paste the blockEmailAddresses list into the array. Alternatively, you can save the list of blockEmailAddress onto a array variable. I'd think saving it as a variable may work better for your team as you do not have to consistently copy and paste the value.