Non-HubSpot form Tool from HubSpot not collecting form submission data

Created on 5 October 2023, 9 months ago

Not directly related to this module but this might be of interest to anyone who has a Drupal site using the HubSpot JS tracking code (this is the code snippet provided and recommended by HubSpot).

We are experiencing a weird issue where Drupal webform submissions are not being collected by HubSpot. In Drupal webforms, there is an attribute called 'data-drupal-form-fields.' When this attribute is present, the form does not submit data to HubSpot, and results in a console error message "Cannot find a matching submit button for the Drupal form.".

Spent ages trying to debug this with HubSpot and it seems possible to replicate with the following code

<form data-drupal-form-fields="xyz">
<input type="text" name="firstname" required>
<input type="text" name="lastname" required>
<input type="email" name="email" required>
<input type="submit" value="submit"> 
</form> 

To test this, you can place the following HTML on a page along with the HubSpot tracking code. It's important to note that this HTML form does not require Drupal CMS, Drupal Web forms, or any other specific code:

Seems to be a bug introduced end of Apr 23 by HubSpot. Unfortunately, we've been unable to persuade HubSpot to address this issue, and their recommendation is to use this contributed Drupal Module instead of relying on the 'Non-HubSpot form tool'.

πŸ› Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom sittard

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024