Announcements
I have created some fields related to contacts which I want to include in a marketing form as hidden fields.
Unfortunately I am unable to select the "Hide field" toggle as it is not visible for the fields I created.
The standard field "Do not email" is set as a two option checkbox with a contact mapping to "Do not allow buld emails" and can be marked a hidden.
My field "Tracking" is set as a two option checkbox with a contact mapping to "Do not track" and can not be hidden. The toggle is not even visible.
What am I missing?
Hi Neil,
OK. As you said, the hidden attribute could help us to hide the field manually.
<div data-editorblocktype="Field-radioButtons" hidden="hidden">
I have searched through related documentation:
however, I didn't find any note section which told us that the hide option field is not available to optionset field.
If you had found any answer helped, please kindly mark as verified to close the thread, it would be really appreciated. :)
Regards,
Clofly
Thanks for the tips.
I think I'll stick to setting it as hidden in the html until it gets "fixed".
Neil
Hi Neil,
It seems that the issue is by design: hide field option is not available to Option set field(either radio buttons or dropdown.)
You could change its data-editorblocktype attribute to another element name, e.g: data-editorblocktype="Field-radioButtons" → data-editorblocktype="Field-checkbox".
Then "hide field" option will be available again, and from my test, marketing form can still be submitted successfully;
the only problem is that the field will be not able to set a default value by form designer tool, but we could run javascript to solve it.(After form is rendered, here is introduction about Marketing form API.)
Or we could do it without code:
From beginning we set the field a default value with data-editorblocktype="Field-radioButtons",
then change the attribute to Field-checkbox to enable hide field option.
Please wait for this issue to be fixed in future release.
Regards,
Clofly
Thanks for the tip.
I got it working for this field now.
However another field which I want to use to set Consent given doesn't work.
The field is an Option set set to radio buttons (or dropdown) and mapped to the contact fied Consent given.
When I add this field to a form no option to hide the field is available in the properties.
I could set it as hidden in the html but this makes later editing by others awkward as they would need to know that the hidden property is set in the html for this field.
Hi Neil,
The toggle is expected to be available for any field which is added by drag-and-drop from element in Toolbox tab.
You could check whether data-editorblocktype="Field-checkbox" attribute has been added for your checkbox element properly in HTML source code view.
If we remove the attribute, the input field will be no longer selectable and editable, thus the toggle won't appear.
Regards,
Clofly
André Arnaud de Cal...
294,251
Super User 2025 Season 1
Martin Dráb
232,984
Most Valuable Professional
nmaenpaa
101,158
Moderator