This content has been marked as final. Show 7 replies
Doc.zoomType = zoomtype.fitP
Have you read the JS API Reference?
I just looked at the JS API Reference. I am not a code person so I did not understand all of it.
Where would this Doc.zoomType=zoomtype.fitP be placed? Does it go on the button?
That depends entirely on your form and how you're processing the links.
The "Doc" in "Doc.zoomType" just represents a generic Doc class object. You'll need to replace that with whatever variable name you are using to access the Doc class of the newly loaded view.
I am using the script on a Button. Are forms and buttons different?
Also, "You'll need to replace that with whatever variable name you are using to access the Doc class of the newly loaded view." I have no idea what that means.
Thanks for your patience.
Forms are collections of form objects. Buttons, lists, text, etc. all comprise portions of forms. I understand your script is only on the button, but you have not described the script or its function in the form workflow so there is very little I can say about where the place additional code with certainty. Like I said, it entirely depends on how you designed your form (and by that, I guess I should have said form workflow).
> Also, "You'll need to replace that with whatever variable name you are using to access the Doc class of the newly loaded view." I have no idea what that means.
In your code, I'm sure you use a method that begins with "this.". In that case, "this." is the container for the Doc class object for the currently open document. However, using "this." is tricky - it will always be the *currently active* document, regardless of what your script does. If the links you are processing in your fly-out menu open other documents, instead of simply moving to a different page in the same document, "this." will not work as a reference to the new document from inside the initiating document's button. You will need to acquire a reference to the newly opened documents Doc class object in order to perform any Doc class functions (as described in the JS API Reference) on that document.
Here is the script im using:
var cDest =
app.popUpMenu ("A Message From NACCHO", "In Their Own Words");
I did not write my own script, I took it from another PDF that was made, then as I was double checking things, I noticed this issue.
I am looking for a quick fix if its possible.
Is it possible for me to send to you the first page of this PDF to you so you can see what I have done?