APIs & Integrations

IzzatyBadrol
Member

Form Validation - Stop from Immediately Validating

SOLVE

Imagine from a UX standpoint, if a person/lead is typing in the form - and they aren't the fastest typist - getting flagged as error while typing can be very annoying.

 

Is there a way that I can edit the API to make sure the fields are only validated once the user gets to the next fields. 

 

Thank you!

0 Upvotes
1 Accepted solution
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Form Validation - Stop from Immediately Validating

SOLVE

Hi @IzzatyBadrol,


This is not something currently supported by HubSpot Forms. Right now it debounces user input for about 1 second, if you would want to do the exact behavior that you described it would be possible through customizing the form embed code, by injecting custom javascript to then modify the visible CSS, though the exact code would take me a few hours to work out.

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

2 Replies 2
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Form Validation - Stop from Immediately Validating

SOLVE

Hi @IzzatyBadrol,


This is not something currently supported by HubSpot Forms. Right now it debounces user input for about 1 second, if you would want to do the exact behavior that you described it would be possible through customizing the form embed code, by injecting custom javascript to then modify the visible CSS, though the exact code would take me a few hours to work out.

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

Jaycee_Lewis
Community Manager
Community Manager

Form Validation - Stop from Immediately Validating

SOLVE

Hey, @IzzatyBadrol 👋  Thanks for reaching out! To make sure our community has all the info they need can you tell us what version of the forms API you are using, please? @Indra and @JBeatty do you have any experience with customizing the validation timing when using the Forms API? 

 

Thank you! – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes