Activate Action


Back to Form Scripts...

This form script is executed at the moment when a user adds in the list of forms another form by clicking on the checkbox associated with the job. Thus, for example, this script can be used to generate a pre-selection for the addressee when ie creating a new job.

The following example shows how a group with id 93 is selected while creating a todo within a form:

if(com.proxemo.todo.client.gui.base.ToDoFrame.getInstance().getSelectedTab()==1)
{
     var tab=com.proxemo.todo.client.gui.creation.ToDoNewTaskTab.getInstance();
     tab.selectGroupById(93);
} 

You may use the following predefined variables in this script:

  • formPanel: GUI object that manages the list of available and selected forms.
  • form: current form object of type ToDoTaskSuperMetaData
  • task: task object

Please see the list of tutorials for examples of how to use these objects.

Go to Send Action...