CMS Development

dmart
Miembro

Hidden Fields Take Up Space

resolver

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 Soluciones aceptada
KenF
Solución
Colaborador

Hidden Fields Take Up Space

resolver

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

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
KenF
Solución
Colaborador

Hidden Fields Take Up Space

resolver

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 Me gusta
GiantFocal
Participante | Partner
Participante | Partner

Hidden Fields Take Up Space

resolver

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?