I am using embed codes from hubspot in external sites. Previously I was using API v1, then the inline validation messages were working but after I upgraded to v2 those messages seems to not work anymore? Is there any settings I am missing? Pls suggest
It seems v2 does not have the support for inline validations, do I need to do some custom coding for this?
Custom field validation is no longer supported with the v2 embed code, and while it might be possible to add custom validation to the form manually using the
onFormReady function in the embed code, any custom function you add would be working against the built-in validation/submission function of the form. If you need custom validation, your best bet would be to use a custom form, and use the Forms API to send the data to HubSpot.
I came across this link http://designers.hubspot.com/blog/new-hubspot-forms-embed-code, which says that inline validation message is supported by hubspot externally embedded forms. Is this post referring to v1? In my case, the validation popups were working when it was v1, but after switching to v2 they are not working.
I believe those parameters were for the older v1 embed code. Some of the parameters changed with v2, and you can find the current list of supported parameters for the v2 code here:
Let us know if you need any help with a demo.