cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form want to hide Subform

Former Member
0 Kudos

Hi All,

I am using a subform as a table item in my adobe form.

I have two levels of item level data.

I want to hide the whole subform containing the second level of data based on the value of afield.

Scenario is for a particulare item level data i have some sub items.

The subitems is nothing but material details corresponding to a operation(a work order can have multiple operations,work order is header).

So I want to stop/hide the whole subform of material details if Material is initial.

To be more clear i want check the value of a particular field and if its intial i should not display the subform.

Please help me with what to write in the script editor of the adobe form.

Thank you very much in advance.

Regards,

Kishore.

Accepted Solutions (0)

Answers (2)

Answers (2)

nikhil_bose
Active Contributor
0 Kudos

[Change Events - Show/Hide Subforms|http://forums.adobe.com/thread/417811]

Regards,

Nikhil Bose

Former Member
0 Kudos

Hi,

This is an example checking a field named Textfield2 and a subform named subform2. The subform is inserted in row1 of table2.

if(TextField2.rawValue == null)
{
   Table2.Row1.Subform2.presence = "hidden";
}
else
{
   Table2.Row1.Subform2.presence = "visible";
}

Best regards, Aldo.

Former Member
0 Kudos

Thank you very much for the help.

However this is not working,I think I have not explained you myproblem clearly.

I have 'Table Item' subform below this I have one more sub form 'Material' Subform.

Table Item Sub form displays the Operation Detaild of a Work Order,and Material subform displays the Components of a Operations.

So I want stop the presence of Material Subform when varaible Material is absent.

Please let me know if its still not clear.

Former Member
0 Kudos

I guess you need to check the condition and make the second subform visible or invisible

using below script.

Subform.presence = "visible";

Subform.presence = "hidden";

This can be achieved by simple scripting if I have not misunderstood the requirement.

Thanks,

Aravind

Former Member
0 Kudos

I am aware of this subform.presence = visible or hide.

The thing which I am looking at is the condition which help me to identify the value of the variable Material.

Such that I can place condition and write this subform.presence.

Thank you very much in advance.

Regards,

Kishore.

Former Member
0 Kudos

If the material has any UI element. You can check its value by.

if (Material_elem.rawValue == "null" or Material_elem.rawValue == "" )

subform.presence = "hidden";

else

subform.presence = "visible";

endif

Thanks,

Aravind