Hi,
I have a Livecycle PDF form, with a file attached.
I want to ensure that the File Attachment Toolbar is always closed when the form is opened.
I can call:
app.execMenuItem("ShowHideFileAttachment");
But this does only seems to toggle the state. Is there a way to default it to be closed?
PS - By default the Toolbar is closed in Acrobat Pro, but open in Reader
Solved! Go to Solution.
Views
Replies
Total Likes
Put this script into the initialize:event of your form, to hide all panes.
event.target.viewState = {overViewMode:5};
Hmmm - thanks, but it didn't work. Initially I got this error:
GeneralError: Operation failed.
Doc.viewState:5:XFA:topmostSubform[0]:initialize
I am using a static PDF form, with fixed pages (Reader Extended).
Views
Replies
Total Likes
Hmmm,
try it in the docReady:event.
It works for me.
Yep docready works (initialised didn't)
Thanks!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies