Highlighted

Multi subforms on 1 page - make 1 subform hidden

Avatar

Guest

16-07-2008

Good Day

I would be a wee bit new at this so it might sound like a silly question.



I have designed a form that is approx 3 pages in length when all subforms are visable. When I tried to hide 1 subform on a page (using a check box) the whole page (3 subforms) became hidden. Is there a way to only hide or make visable 1 subform if there are multi subforms on a single page?



Regards



Don

Replies

Highlighted

Avatar

Guest

17-07-2008

Thanks Paul;

The code I am using on the Checkbox is as follows



if (CheckBox1.rawValue == true)

Subform2.presence = "visible";

else

Subform2.presence = "hidden";



There are a 4 checkboxes that depending if they are selected will make visable the corresponding subform.



Regards



Don
Highlighted

pguerett

17-07-2008

Add an app.alert(CheckBox1.rawValue) before the if statement to ensure that you are getting back what you think you are.



Also make sure you are rendering as a dynamic form