One of our magento2 sites creates a form using HubSpot, we are adding it to the page via JavaScript, and using just the raw html which I have overridden within the site files.
We have recently added a french version of the site, which uses the same form layout, and as such a new form has been created, which should work in the same way. Instead for some reason HubSpot is wrapping some of the fields in a <fieldset> tag, which is then interfering with the styles that were applied to the first form that should just apply to these ones no problem.
I can't change css for one without changing the other, but I know that the form will work just fine if I can remove the fieldsets. Can anyone please advise on this?
Here is roughly what the html looks like for two sites:
Digging into this, I'm able to confirm that when a form have two columns, the fields will be wrapped in a fieldset. While I do noticed that the Warranty Form have two columns (date of install + last name and postcode + product 1) and fields aren't being wrapped in a fieldset. When I clone the form to hstest Form (clone) > Hit the published unpublished changes > I'm also seeing the fields being wrapped in a fieldset. Here's the testing page that has hstest Form (clone) on it: https://info.wendyggx.com/testpage1234
That said, if you'd like to change the fieldset of a particular form without changing the other form, you can target it like this:
Thanks for the reply. I'm not sure if the forms have been set up in the same way, as they were set up by our client; I'm the developer importing the form they've set up.
Digging into this, I'm able to confirm that when a form have two columns, the fields will be wrapped in a fieldset. While I do noticed that the Warranty Form have two columns (date of install + last name and postcode + product 1) and fields aren't being wrapped in a fieldset. When I clone the form to hstest Form (clone) > Hit the published unpublished changes > I'm also seeing the fields being wrapped in a fieldset. Here's the testing page that has hstest Form (clone) on it: https://info.wendyggx.com/testpage1234
That said, if you'd like to change the fieldset of a particular form without changing the other form, you can target it like this: