I am trying to apply a code for an API that realizes a real-time email validation on my langing page. I know at least two huge brazilian companies (that are Hubspot’s customers already) that need to apply this API either - and asked me for help.
The problem is that the API searches the code looking for the email field. But, in the source, every field has the same type and same class, becoming impossible to find the right spot. How do the API can identify the correct field (email), considering that all fields look the same in the code? Is there any detail that we are forgetting to look? Could you please help us solving this issue?
you should see type="email" and a unique id like email-ba9c05d2-a24c-424a-95c6-d02993d2e21d_4488 appear in the form’s source code. You can then use this to target your script.
TY for your help, now I know how to put the class in the field. But the API still not working, the JavaScript cant read the field, JS work but can’t read the field. https://hblanding.safetymails.com/sample-offer
To clarify, are you saying the external email validation API is not working? Can you describe how it is applying JavaScript or searching for the field and what errors it is returning?
If you are referring to an external API, I probably won’t be able to help troubleshooting its issues, but I can make sure that classes and IDs are applied correctly to the HubSpot form.