Select Action


This form script is executed the moment a user adds another form to the ticket in the list of forms by clicking on the corresponding checkbox. This script can therefore be used, for example, to make a pre-selection for the recipient when creating a new ticket, etc.
The following example shows, for example, how to select the group with ID 93 as the recipient when creating a ticket by selecting a form:

taskPanel.setGroupById(93);

The following environment variables are available in this script:

  • formPanel: the GUI object that manages the form selection.
  • form: the current form object of type ToDoTaskSuperMetaData
  • taskPanel: the GUI object used for ticket creation
  • task: the ticket object

Please see the list of tutorials to study examples of using these variables.