Skip to content

Event Listening

In some complex scenarios, it is necessary to listen to form change events to execute programs with specific functions. For example, after a user enters a value in an integer field input box, an automation program needs to be called based on the user's input to check whether the entered number meets the requirements.

Listenable Events

  • Form initialization, triggered after the form is initialized
  • After form field value changes, triggered after the form's field values change
  • After form data is reloaded
  • After form field values change
  • After form subtable field values are loaded
  • After form subtable field values are reloaded

Usage Instructions

When an event listener is triggered, it calls the set automation program and passes the form event object to the automation program.

When the form contains the three types of fields: associated list, lookup list, and sub-object, when a row in the subtable changes, it will trigger the after form field value changes event of the data table corresponding to the subtable.

Usage Example

For example, the structure of the form is as follows:

Project

Field NameField TypeDescription
NameSingle Text
Associated TasksLookup ListAssociated with Tasks

Task

Field NameField TypeDescription
NameSingle Text
TypeSingle Text
  • When the Name field of the project table changes, it triggers the after form field value changes event of the Project table.
  • When the Associated Tasks field of the project table changes, it triggers the after form field value changes event of the Project table, and the changed field is Associated Tasks.
  • When the Associated Tasks field of the project table changes, it triggers the after form field value changes event of the Task table, and the changed field is the field that was modified in the Task table.