View/Hide Pages in Output

heatherl4481147

11-02-2016

I need to add a front cover page and a back cover page to an existing document in Livecycle.  I need to hide these pages if a value in my xml is set to false.  Is there a way to hide an entire page?

Accepted Solutions (0)

Answers (1)

Answers (1)

MinusZero

17-05-2016

Simple. Firstly, use the Add Action selection in the context menu...it is your friend if you get stuck.

This example is on a checkbox change event.

if (this.rawValue == "1") {

  this.resolveNode("#subform[2]").presence = "hidden";

}

//my page 2 is called #subform[2]

//if you need to show it again, make the rawValue of the check box 0 and presence to visible. When you uncheck, it becomes visible again