Define JavaScript functions on a form

You can define JavaScript functions in the form properties. Later, these functions can be called using the JavaScript action. See Add a JavaScript Action to a form.

  1. On a form, click the form name.
  2. On the Properties bar, click Settings Extended Properties.
  3. On the Extended Properties page, click the JavaScript tab.
  4. In the Script box, enter the script.
    Important The script can contain one or more functions, however you must enter a valid script, otherwise the form fails to load at runtime.
  5. Click Release Save and Release.