| Name | Type | Description |
|---|---|---|
| record | sys.data.Record | The record where the action will be executed. This variable is only available if the type of the action is |
| action | sys.data.Action | This allows access to the parameters of the action. When the action is executed from the UI, changes made here will be reflected in the UI. |
| modifiedParameter | string | A string with the name of the field that fires the event. |
//sets the value as the email of the current user only if the field 'sendTo' has changed and is empty
if (modifiedParameter == 'sendTo' && action.field('sendTo').isEmpty()) {
action.field('sendTo').val(sys.context.getCurrentUser().email());
}