Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.5 8.0 8.1 8.2 8.3 8.4 8.5 9.0 9.1 9.2 Statistic
Adds an action to a PDF object.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|The PDF reference returned from DynaPDF.New.|
|ObjectType||The type of object that should get the action.
Can be Action, Annotation, Bookmark, Catalog, Field, Page or PageLink.
|ObjectEvent||Which event should trigger the action.
Can be OnOpen, OnClose, OnMouseUp, OnMouseEnter, OnMouseExit, OnMouseDown, OnFocus, OnBlur, OnKeyStroke, OnFormat, OnCalc, OnValidate, OnPageVisible, OnPageInVisible, OnPageOpen, OnPageClose, OnBeforeClosign, OnBeforeSaving, OnAfterSaving, OnBeforePrinting or OnAfterPrinting.
|Action Handle||The handle for the action.
e.g. returned by DynaPDF.CreateJSAction.
|Object Handle||The object handle, e.g. a field number for a ObjectType = Field.||$o|
Returns OK or error.
DescriptionAdds an action to a PDF object.
The parameter ActHandle requires a handle that was returned by a function that creates an action object such as DynaPDF.CreateGoToAction, etc. The object handle is also a return value of its creation function. If the object type is a page, then use the page number as handle.
It is possible to add multiple actions to one object, but note that DynaPDF does not check whether all actions are valid. For example, it is possible to add more than one action to a text field to the OnFormat event, but Acrobat executes only the first one. Always test your actions with different Acrobat versions because each version handles actions in a different manner.
See also AddActionToObj function in DynaPDF manual.
Create sum field:
Create checkbox to confirm page and jump to next one:
- MBS FileMaker Plugin, version 6.4pr5
- Tip of the day: DynaPDF form creation with calculation with FileMaker
Created 24th August 2016, last changed 21st May 2017
Feedback: Report problem or ask question.
MBS FileMaker blog