Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Problems With a Header


Level 2

I have
form1::prePrint - (JavaScript, client)
form1.#pageSet.Page7.T7.presence = "hidden";

I've also tried form1.pageSet.Page7.T7.presence = "hidden";

and form1.Page7.T7.presence = "hidden"; I want it to hide in the prePrint and reappear in the postprint.  I've tried a checkbox with the following to see if there is a spelling problem, but it hides with a checkbox?  But I really have no use for a checkbox.

if (this.rawValue == "1") {
    for (j=0; j< xfa.layout.pageCount();j++){
     xfa.resolveNode("form1.pageSet.Page7[" + j + "]").T7.presence = "hidden"

Someone help please.  Ohh and T7 is just a calculated textfield with ";"

1 Reply


Level 10


If you are using LC Designer ES2 (or possible LC Designer v8), then you can select the T7 object and in the Object > Field palette change the visibility from 'Visible' to 'Visible (screen only)'.

This solution does not need script at all.

If you don't have the 'Visible (screen only)' option, then I would put the script in the prePrint and postPrint event of the T7 object itself. For example:

this.presence = "hidden"; 

this.presence = "visible"; 

Hope that helps,