Skip to main content
Legend
July 29, 2014
Answered

Hidden Until Triggered on Buttons

  • July 29, 2014
  • 1 reply
  • 835 views

Hello,

I am creating buttons and I would like to set the 'Hidden Until Triggered' check box.  Can this be done by a script?

This topic has been closed for replies.
Correct answer Laubender

Hi, Pickory!

In InDesign CS5.5 that was:

myButton.visibilityInPdf = VisibilityInPdf.HIDDEN_BUT_PRINTABLE_IN_PDF;

In CS6 that has obviously changed…

myButton.hiddenUntilTriggered = true;

Uwe

(Was logged in with the wrong Adobe ID, so I removed one message and added this one)

1 reply

LaubenderCommunity ExpertCorrect answer
Community Expert
July 29, 2014

Hi, Pickory!

In InDesign CS5.5 that was:

myButton.visibilityInPdf = VisibilityInPdf.HIDDEN_BUT_PRINTABLE_IN_PDF;

In CS6 that has obviously changed…

myButton.hiddenUntilTriggered = true;

Uwe

(Was logged in with the wrong Adobe ID, so I removed one message and added this one)

PickoryAuthor
Legend
July 29, 2014

Hi,

Thank you, that sorted it out.

I searched for some ting like that, but didn't find anything. Can you tell me where you found the documentation for that.

Thank you very much.

P.

Community Expert
July 29, 2014

Hi, Pickory!
Documentation like always:

www.jongware.com/idjshelp.html

Or directly online with:

Adobe InDesign CS6 (8.0) Object Model JS: Button

Uwe

PS. Download the chm files from there…

They are searchable at best!