Events

Scripts are triggered by events. The required Event is specified in the Scripting Studio Tools and Settings options.

User event selection for form scripts in the Scripting Studio tools and settings pane.

You should select the Event according to the purpose of the Entrance Function, see the diagram below.

User event sequence and descriptions of typical use cases for scripts associated with each user event.
Note:

Only forms that can take part in an approval process receive approval events.

Note:

The OpenAir mobile app does not support “On submit,” “Before save,” or “After save” scripts associated with the timesheet entity form.

OpenAir Mobile 4.0 or later version supports:

  • All form scripts associated with the expense report and receipt entity forms.

  • "Before approval" and "After approval" scripts associated with the timesheet entity form.

For an example of script that is executed both in OpenAir and OpenAir Mobile, see Ensure resource time entry matches booking planning and project worked hours

Important:

Form scripts may be triggered by an event associated with user interaction — when a user clicks Save, for example.

Form scripts can also be triggered by an event associated with a process utilizing the form software logic — when importing project records from NetSuite using OpenAir NetSuite Connector, for example, depending on the integration configuration. For more information, see Scripting and NetSuite Integration.