Parameters
NameTypeDescription
recordsys.data.RecordThe record where the action will be executed.
interactionsys.data.InteractionInteraction object to access parameters of the interaction.
modifiedParameterstringA string with the name of the field that fires the event.
Samples
 
//sets the value as the email of the current user only if the field 'sendTo' has changed and is empty
if (modifiedParameter == 'sendTo' && interaction.field('sendTo').isEmpty()) {
  interaction.field('sendTo').val(sys.context.getCurrentUser().email());
}