Issues with customizing error message on form embed code
Jan 13, 2020 4:27 PM
Using a hbspot form which requires the user to input and submit an email.
I'm trying to change the error message when a user tried to submit an incomplete/invalid email. I've been using the guide on How to customize the form embed code on Hubspot, following this format:
blockedEmail: "Please enter a valid email address",
The customizations for the error messages are not registering when the user clicks the submit button. For example, the error message still reads "Please change your email address to continue" (which is the default) instead of "Please enter a valid email address" (as shown in the my code above). However, the customized error message for keys like "invalidEmailFormat" works - and is displayed while the user is typing in the email field.
Basically, the customizations don't work on keys that are called after the submit button is clicked.
Would appreciate any suggestions!