Expand my Community achievements bar.

subforms appearing/disappearing

Avatar

Level 1

I am struggling to make subforms appear/disapprear dependant on whether a check box is selceted. Any advice gratefully appreciated. I have 7 check boxes and i need to link them to 7 subforms

2 Replies

Avatar

Former Community Member

Are you using the presence property to show/hide? Are the subforms starting as hidden? If they are, set them to invisible and it should work. Then if you want to truly use hidden, you will have to restructure the form to allow the use of the instance manager to add a section. Have a look at dynamic subforms to see how to do it.

Paul

Avatar

Former Community Member

Here is a quick sample of 7 checkboxes controlling 7 subforms.  Let me know if you have any questions around how this works.

Things you need to pay attention to in particular:

  • Make sure your top-level form is "flowed" so that the space the "hidden" content used previously disappears along with the content
  • Your form needs to be "Dynamic".  If it is static then field visibility can not change.