Expand my Community achievements bar.

Hiding elements before printing.

Avatar

Former Community Member
Hi All,



I'm trying to hide a footer subform on my master page on the prePrint event.



this.presence = "hidden" works normally but not with a master page.



I have tried referencing it like this:



form1.MasterPage.Page1.Footer.presence = "hidden";



but that gives a "form1.MasterPage has no properties" error so I'm guessing I'm referencing it incorrectly.



Is there some quirk when addressing elements on a master page?



Thanks!
1 Reply

Avatar

Former Community Member
Try this:



xfa.resolveNode("form1.pageSet.Page1.Footer").presence = "hidden";



It worked for me.