CMS Development

dmart
Mitglied

Hidden Fields Take Up Space

lösung

Hi,

 

I noticed that adding hidden fields to a form, the fields will still occupy space due to the containing form-column div.

 

Is there an obvious step I'm missing to stop this behavior? Using the default form builder, raw html & styling for an external page.

 

Thanks

1 Akzeptierte Lösung
KenF
Lösung
Mitwirkender/Mitwirkende

Hidden Fields Take Up Space

lösung

Hi @dmart ,

 

I tested adding a hidden field to a form using the Growth theme and it was completely hidden. This suggests that the issue you're experiencing could be dependent on the theme or form structure you're using.

 

In any case, you should be able to add a display: none css rule to the parent element if it's creating space around your hidden form element. Feel free to post the form HTML structure here and I can create a css path to hide the form column div for you.

 

Cheers,

Ken

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
KenF
Lösung
Mitwirkender/Mitwirkende

Hidden Fields Take Up Space

lösung

Hi @dmart ,

 

I tested adding a hidden field to a form using the Growth theme and it was completely hidden. This suggests that the issue you're experiencing could be dependent on the theme or form structure you're using.

 

In any case, you should be able to add a display: none css rule to the parent element if it's creating space around your hidden form element. Feel free to post the form HTML structure here and I can create a css path to hide the form column div for you.

 

Cheers,

Ken

0 Upvotes
GiantFocal
Teilnehmer/-in | Partner
Teilnehmer/-in | Partner

Hidden Fields Take Up Space

lösung

Hi @dmart,

 

Are you referring to a hidden field within a multi-column?

Could you please upload a screenshot of the form here?

 

Best regards,

Abraham @ GiantFocal

Best regards,
Abraham Ernesto
Found this answer helpful?
Marking it as the solution helps both the community and me - thanks in advance!

Need help with your HubSpot project?