How to edit error text for blocked email domains

I’ve turned on the “Block free email providers” option for my form. However, I’d like to edit the error text that appears if you do try to use a personal email.

Currently you get the message “Please enter your business email address. This form does not accept addresses from gmail.com.”
I’d like to edit this message - does anyone know where I can do that?

Thanks!
Dan

Hi @DanKemp,

As far as a I know, this notice cannot be edited. (Don’t shoot the messenger.)

Best regards!

Hey @DanKemp there’s no way to do this in-app, however, if you’re using the forms embed code you can customise this through custom JS and customising the forms embed code.

https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options

Thanks Tom, I appreciate you pointing out that this is probably do-able and where to do it. I don’t have enough knowledge of JS to work out how to do this specifically for the blocked email domains error text though.
If someone could walk me through it I could implement it - but can’t work out how to do it myself. Any help?!