Expand my Community achievements bar.

Need help in hide / visible of sub forms.

Avatar

Level 3

Hi ,

I have two subforms in a form .One is visible and other one is Hidden(Exclude from layout). In sub form which is visible has two check boxes based on selection the one which is hidden should be visible.

For example:

subform 1:

checkbox1

checkbox2

On change event of subform1 i have written  the following script;

if( checkbox1.rawvalue == "yes")

        subform2.presence ="visible";

else

     subform2.presence ="hidden";

It is working as per the expectation at the initial level .But when form is  at next level of work flow that means when approver opens the form  the subform2 is not showing up i.e .. the subform 2 which is hidden initially  and which is set to visible  by selecting the checkbox1 is not showing up when approver opens the form.

Please help me!!!

Thanks,

Bharathi

1 Reply

Avatar

Former Community Member

Add your script to the Doc Ready event as well.