In InDesign CS5.5 that was:
myButton.visibilityInPdf = VisibilityInPdf.HIDDEN_BUT_PRINTABLE_IN_PDF;
In CS6 that has obviously changed…
myButton.hiddenUntilTriggered = true;
(Was logged in with the wrong Adobe ID, so I removed one message and added this one)
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.
Brilliant, thank you very much.
And if you ever might ask yourself how IDML or IDMS will work with down-compatibility in mind: the InDesign IDML or IDMS export of CS6 and above will set both properties.
Here an excerpt from an IDMS file with a button object:
<Button Self="u10c" VisibilityInPdf="HiddenButPrintableInPdf" HiddenUntilTriggered="true"
If we are playful, by editing that file we can construct an IDMS file, that places that button in CS5.5 with "Hidden Until Triggered" and if placed in CS6 and above without "Hidden Until Triggered":
<Button Self="u10c" VisibilityInPdf="HiddenButPrintableInPdf" HiddenUntilTriggered="false"
Thats interesting, and funny, as I just wrote a sloppy bit code and wondered if it would work.
buttonsArray[k][\"Button\"].hiddenUntilTriggered = true;
buttonsArray[k][\"Button\"].visibilityInPdf = VisibilityInPdf.HIDDEN_BUT_PRINTABLE_IN_PDF;
Thanks again for your help.