CMS Development

dmart
メンバー

Hidden Fields Take Up Space

解決

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件の承認済みベストアンサー
KenF
解決策
投稿者

Hidden Fields Take Up Space

解決

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 いいね!
2件の返信
KenF
解決策
投稿者

Hidden Fields Take Up Space

解決

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 いいね!
GiantFocal
参加者 | Solutions Partner
参加者 | Solutions Partner

Hidden Fields Take Up Space

解決

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?