Re: Preview or collapse/show text box in form

Moritz_Trollman
Level 3

Preview or collapse/show text box in form

Hello Community.

Is there any way I can make a form text box collapse and show on click ?

I would like to give a preview of our disclaimer text but not show the entire text as  it is quite lengthy. The text currently lives within a richt text box above the submit button.

BR,

Moritz

4 REPLIES 4
Grégoire_Miche2
Level 10

Re: Preview or collapse/show text box in form

Hi Moritz,

This is typically something you can set with some CSS 3.0

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Re: Preview or collapse/show text box in form

Follow this lead: MktoForms2 :: Expand Text

Kim_Gandy1
Level 7

Re: Preview or collapse/show text box in form

Could I edit this code to make a form collapsible. We have a lengthy preference center and would like to nest newsletter opt in/outs by topic.

SanfordWhiteman
Level 10 - Community Moderator

Re: Preview or collapse/show text box in form

Yes, as in this demo from another thread the other day: https://codepen.io/figureone/pen/vmQNvQ