Creating the PDF trigger

The following instructions describe how to create a trigger that calls the PDF service, and triggers the service when the user clicks the button.

About this task

When the user clicks the button, the service that maps information from the form to the PDF is triggered. The PDF is displayed, or stored as an attachment, with user supplied information in the PDF fields.

Procedure

  1. Add a Button to your form from the Palette.
  2. Change the Caption of the button so users know that clicking it populates a PDF.
    For example, change the caption of the button to Create PDF.
  3. Click the Edit Properties icon for the button.
    The Edit Properties window opens.
  4. Click the Advanced tab.
  5. Select Call a service when clicked.
    Select the Service Configuration you created from the menu.
  6. Click OK to exit the Properties windows.
  7. Save your application.

Results

When the application is deployed, you can click the Create PDF button and a PDF is populated containing the values that are entered in the Volt application.
Note: You can use other common form events as triggers, including validateButtonPressed. Stage action buttons cannot be used as triggers.