I am building several forms that have a english version and a spanish version in addition to litigated or non litigated - English non litigated is the default
I have set up the code for the spanish english this way - and it works (this code is applied to a check box in the header )if
(this.rawValue =="1")
{Subform_Trans.presence = "visible";
Page1S.presence = "visible";
Page2S.presence = "visible";
Page3S.presence = "visible";
Page4S.presence = "visible";
}
else
{Subform_Trans.presence = "hidden";
Page1S.presence = "hidden";
Page2S.presence = "hidden";
Page3S.presence = "hidden";
}
I have set up the litigated code following the same model - this code is applied to a check box in the header
if
(this.rawValue =="1")
{Subform_105.presence = "hidden";
Subform_105SP.presence = "hidden";
Page16.presence = "hidden";
Page17.presence = "hidden";
Page18.presence = "hidden";
Page19.presence = "hidden";
Page14S.presence = "hidden";
Page15S.presence = "hidden";
Page16S.presence = "hidden";
Page17S.presence = "hidden";
Subform_106.presence = "visible";
Subform_106S.presence = "visible";
Page4s.presence = "visible";
Page5S.presence = "visible";
Page6S.presence = "visible";
Page7S.presence = "visible";
Page8S.presence = "visible";
Page9S.presence = "visible";
Page10S.presence = "visible";
Page8.presence = "visible";
Page9.presence = "visible";
Page10.presence = "visible";
Page13.presence = "visible";
}
else
{Subform_105.presence = "visible";
Subform_105SP.presence = "visible";
Page16.presence = "visible";
Page17.presence = "visible";
Page18.presence = "visible";
Page19.presence = "hidden";
Page14S.presence = "visible";
Page15S.presence = "visible";
Page16S.presence = "visible";
Page17S.presence = "visible";
Subform_106.presence = "hidden";
Subform_106S.presence = "hidden";
Page4s.presence = "hidden";
Page5S.presence = "hidden";
Page6S.presence = "hidden";
Page7S.presence = "hidden";
Page8S.presence = "hidden";
Page9S.presence = "hidden";
Page10S.presence = "hidden";
Page8.presence = "hidden";
Page9.presence = "hidden";
Page10.presence = "hidden";
Page13.presence = "hidden";
}
As you can see the document is quite large - I can get the code in some of my smaller documents but not across the board.
Has anyone had any luck with this kind of formatting?
thanks
R