Expand my Community achievements bar.

Hiding and unhiding unused sections of a form

Avatar

Level 2

I know I ran across something about this last week but am unable to find it.  I have a multi part form with sub forms.  Within these subforms, we have the option to add and remove lines within the tables, and that is working fine.  What I need now is for the form to allow the users the option to hide or unhide the entire section, if it is not pertinent.  A portion of the form is attached.

4 Replies

Avatar

Level 6

Hi,

I've added some checkbox to your form, by clicking it you can hide/unhide some section.

See attach.

BR,

Paul Butenko

Avatar

Level 2

Exactly what I was looking for.  Thank you very much!

Avatar

Former Community Member

Hi Paul,

this script was very useful to me too, thanks!

But I need a little more...: how to make the white space disappear after hidding the field so the field below move up? I use the check box to hide a subform. And the next subform doesn't move after clicking. What should I write after this:

if (this.rawValue == 1) {Subform1.presence ="hidden" }
else { Subform1.presence ="" }

Thanks!

Avatar

Level 6

Hi,

For subform which should moved under Subform tab select Content field to Flowed, this will make your subform flowable.

BR,

Paul Butenko