cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide a subform in Adobe forms output depending on the data

mahesh_jagnani
Participant
0 Kudos

Hello Experts,

I am working on static adobe forms. My requirement iis to hide a subform totally when there is no data in the internal table / field and unhide when there is data.

I have subform table under which there are two subforms(Table Header subform and body row subform 1).

Now if there is a data in one of the field of Bodyrow, I want to display the total table form. Else if the field of the body row is blank i want to hide the table subform totally. So the check should be on the field leven and entire table subform shud be hided. Could anyone please help me in this?

Any help would be really appreciated.

Thanks.

Mahesh

Accepted Solutions (0)

Answers (2)

Answers (2)

mahesh_jagnani
Participant
0 Kudos

thanks

Former Member
0 Kudos

Hi Mahesh,

I have done a similar exmaple for a sdn post just 2 days back using table.

but the approach for the subform based table is also the same.

Consider an example of employee list where empno is a not null field.

in this case if you check at the 1st row if the field empno is null then it makes sense there is no list comming from the backend.

then just hide the subform.

//at the subform which hold theis table, form ready event


if(xfa.resolveNode("form1.AAAA.Green.EmpList.Data[0]").Empno.rawValue == null || xfa.resolveNode("form1.AA.xx.Table1.Row1[0]").Cell1.rawValue == "")
 this.presence = "hidden"; 

if you can send me a test mail, I will reply you with the example file to get a better understanding.

Cheers,

Sai