button visible but not Print with script

Avatar

Avatar

mmgiath

Avatar

mmgiath

mmgiath

19-08-2015

How with a script I can make a button visible but not Print?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

19-08-2015

Hi there,

to be able to hide objects when printing without having to put presence in each object's events prePrint and postPrint,

you can use the property relevant

this.relevant = "-print";

Refer to this link for more information:

LiveCycle ES2 * Adobe LiveCycle Designer ES2

Avatar

Avatar

_Sid_

Avatar

_Sid_

_Sid_

19-08-2015

there must be a better way to do this, but a crude option is :

following script into the prePrint event in the Script Editor.

this.presence = “visible”;


following script into the postPrint event in the Script Editor.

this.presence = “invisible”;