There seems to be a bug when attempting to having a form module in the header/footer (partials).
When attempting to add it in its simplest default-form in the header.html or footer.html there is a bug where it will show the correct form in all the preview pages/ways, but it fails on the published/live page.
This is added to the header/footer, a default form-module:
{% module “test”
path="@hubspot/form"
%}
(dnd_module in footer)
It happens on my own ‘free account’, my colleagues ‘free accounts’ and in the production account. I’ve even tried this in a complete stock boilerplate project for the following showcase:
1) added the module in the header/footer partial template.
2) clicking into the global content (footer) and selecting a 2-field form.
3) Apply & Publish (both the global content and the page itself) and see that it is present on all preview-pages (editor preview/‘Preview’/‘preview-in-a-new-tab’) and on live;
Preview:
Live/published:
For whatever reason this works fine, but this is where logic stops.
4) Now change to a different form. This form consist of
3 fields. Earlier it had radio button options + GDPR option selected. This was many months ago and I have updated it inside the ‘full form editor’ several times since.
5) I Apply & Publish (again, both the global content and the page itself).
In the preview pages it looks like this -e:
While on the live/published page:
No matter what I do I always get this “phantom”-form in the live page. The radio buttons and GDPR options appears even though they do not exist in any form on the account. I’ve manually updated every form to make sure. So where the extra options comes from is beyond me - it’s like its somehow retrieving an old, deleted form data from the DB…
But this is just one of the cases. In our production account we have this on preview:
while on live/published pages:
Only one fields. This form does again not exist on the production account. So where it is getting this form from and why it only happens on live pages --- you tell me.
A lot of websites use forms in the footer, so this is kind of crucial.











