Lead Capture Tools

mrFleshka
Participant

Strong HS email validation breaks hit statistics

Hi, we use hidden HS form submitting (in our site we use our forms, but after user submit this one, we create hidden HS form in iframe and automatically submit this). We use this for a lot of reasons. We have our email validation, and check only mask of email (not existence).


When this form submitted hiddenly in HS form in iframe, email validation fails sometimes and submission not creating. For result we cant get real submissions history.

 

Why email migth be wrong? For example it can be typo or some mistake. Or it can be HS validation error (see a lot of tis in community threads).

 

What we need: implement some behaviors like add contact (where wrong email was added) with empty email, or with this wrong email (we manually check this after submission).

 

May be you have eny other advices?

 

How to move this topic to another board? (To this one)

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

Strong HS email validation breaks hit statistics

Hey @mrFleshka ,

 

Happy to help shed some lights here.

 

As mentioned by this KB article,

 

Email addresses entered into the Email field on a HubSpot form are immediately validated by HubSpot.

If you want to build a form with custom validation rules, you can work with your developer to integrate your custom form with HubSpot using the HubSpot Forms API.

Since the default email validation can't be change, the best workaround here is to use the HubSpot Forms API to build your own custom validation rules.

 

Let me know if there are any queries on this 🙂 

 

Best,

Wendy

mrFleshka
Participant

Strong HS email validation breaks hit statistics

Hi, hidden form is HubSpot form, inserted in iframe programmatically (via JS).

We do it becose cannot setup HubSpot forms correctly for display on site.

This hidden form submitting simultaneously with our main form.

 

Main point not about form submnitting. About HS behavior when HS form takes wrong email.

0 Upvotes
natsumimori
Community Manager
Community Manager

Strong HS email validation breaks hit statistics

Hi @mrFleshka ,

 

Thanks for reaching out!

Could you please clarify what do you mean by saying "hidden HubSpot form"? (I believe you are not referring to hidden form fields)

Is this form built on your end? If so, would you mind sharing the codes here so that Community can better understand?