Skip to content

AireForms Events

Tasks and mutations can be triggered by the following events from AireForms:

  • Form Instance Withdrawn
  • Form Instance Created
  • Form Instance Reinstated
  • Form Instance Deleted
  • Form Instance Drafted
  • Form Instance Amended

Currently you cannot use the Form Instance Submitted event in a trigger, to use react to form submission you should use a custom event with a matching event definition.

Context

The context of these events will depend on the type of event, and will include some relevant properties, for example:

xml
<AireForms>
  <FormInstanceCreated subjectIdentifier="your-subject" instanceGuid="your-instance-id" formKey="your-key" formVersion="1" />
</AireForms>

Linking a Form Task

If you want to link a form task to a form when a form instance is created, you should add a trigger using the Form Instance Created event. You can then set the Form Instance ID for that task using a liquid expression like this:

liquid
{{ context.FormInstanceCreated.instanceGuid }}