I have been using normal hubspot forms for my pages. Currently one form requires additional validations and since it cannot be done in the form itself(or can it be done?) I decided to use the Form API but I have been having a hard time.
I would recommend using "submit()" handler in JQuery instead of the "click()". If you want to check out a working example here feel free to do so. If you view the source you can see how I've structured my request.
Just reposting the instructions to get to the live example as this view-source link is blocked.
To get to the source, head to the link below and then right-click on the page and select 'View PageSource' or you can press Option+Command+U for Mac or CTRL+U for Windows once on the page.
I would recommend using "submit()" handler in JQuery instead of the "click()". If you want to check out a working example here feel free to do so. If you view the source you can see how I've structured my request.
Just reposting the instructions to get to the live example as this view-source link is blocked.
To get to the source, head to the link below and then right-click on the page and select 'View PageSource' or you can press Option+Command+U for Mac or CTRL+U for Windows once on the page.
Your example helped me to structure and changing the click event to a on submit event helped. Now im getting the submissions to the form in hubspot! Thanks a lot once again!