Adding JavaScript to an On Click button

The On click property represents the actions that occur when the user clicks an associated button.

  1. In the workspace, click to highlight the button.
  2. Click inside the Value box next to the Property: On click.
  3. Click the browse button.
    The Javascript window is displayed.
  4. In the Javascript window, specify the JavaScript that should be run each time the user clicks the button.

    According to the JavaScript code in this example, when the user clicks the button in the form or report, the button displays a new window that references the WFM web site.

  5. Click OK.
    The main Form Builder screen is displayed.
  6. To re-save the form, select File > Save.