HubSpot form has native validation and error message display, but sometimes you need to display a validation message not just for each field, but for entire form.
Unfortunately, HubSpot form API doesn’t provide a callback for failed validation.
But here is the workaround: we know that HubSpot forms insert an element with an error message, so we can monitor that element after form being submitted:
You can display your message on top or on the bottom.
Here is a working example of this kind of form:
This functionality will be included to the SmartForm plugin we are developing: http://integrationagent.com/smartforms
Discover the hidden automation potential in your payment, billing and invoicing workflows. Talk to our experts for a free assessment!