Adding actions to fields
variaDoc offers the possibility to attach actions to fields. To attach field actions, select the field in the merge tree, then click on More in the Insert toolbar and select the applicable field action.
Field action types
variaDoc enables you to add the following types of field actions to PDF forms.
Submit form⇨Submit the form data to a configured server.
Reset form⇨Restores the field values to their default value.
Go to page⇨The current view of the PDF client is set to a configured page.
Open URL⇨Open a configured URL in a web browser. This may be hindered by the browser's security settings.
This action, complemented with the rich scripting model that PDF has, is a powerful combination.
variaDoc will add the field actions to the PDF, but since they are (by nature) executed in the PDF client, variaDoc does not execute them.
The field actions are executed when a certain event is triggered. A trigger of a field action specifies when the action will be executed. You must configure a trigger for each field action.
You can select from the following triggers:
Mouse Up ⇨Actions are executed as soon as a mouse button goes up in the field.
Mouse Down ⇨Actions are executed as soon as a mouse button goes down in the field.
Mouse Enter ⇨Actions are executed as soon as the mouse cursor enters the field.
Mouse Exit ⇨Actions are executed as soon as the mouse cursor leaves the field.
Got Focus ⇨Actions are executed as soon as the field gets the input focus, ready for the user to enter data.
Lost Focus ⇨Actions are executed as soon as the field loses the input focus.