FormWork FormWork

Triggers

Events that start workflow execution.

Triggers define when a workflow runs. Each trigger type responds to a specific event in your form.

Available Triggers

Form Submitted

Fires when a user completes and submits the form.

Use cases:

  • Send confirmation emails
  • Create records in external systems
  • Calculate final values
  • Trigger approval processes

Configuration:

  • No additional configuration needed

Entry Created

Fires when a new entry is created (before submission).

Use cases:

  • Set initial values
  • Generate reference numbers
  • Pre-populate from external data

Configuration:

  • No additional configuration needed

Answer Updated

Fires when specific field values change.

Use cases:

  • Recalculate dependent values
  • Update related fields
  • Validate against external data

Configuration:

  • Select which fields to watch
  • Trigger on any change or specific values

Metafield Updated

Fires when metafield values change.

Use cases:

  • React to admin status changes
  • Trigger notifications on review
  • Update based on internal data

Configuration:

  • Select which metafields to watch

Button Clicked

Fires when a button field is clicked.

Use cases:

  • Calculate totals on demand
  • Validate sections
  • Load external data

Configuration:

  • Select which button triggers the workflow

Page Loaded

Fires when a form page is displayed.

Use cases:

  • Set up page-specific defaults
  • Load data for the page
  • Track progress

Configuration:

  • Select which pages trigger the workflow

Manual

Fires when manually triggered from admin.

Use cases:

  • Re-process entries
  • Run maintenance tasks
  • Debug workflows

Configuration:

  • Name for the manual trigger button

API Request Received

Fires when a specific API endpoint is called.

Use cases:

  • Webhook integrations
  • External system updates
  • Custom API actions

Configuration:

  • Endpoint path
  • Authentication requirements

Trigger Configuration

Field Selection

For triggers watching specific fields:

  1. Click the trigger node
  2. In the panel, click Select Fields
  3. Check fields to watch
  4. Save

Multiple Triggers

A workflow can have multiple triggers:

Trigger: Form Submitted

       → Calculate Total → Send Email

Trigger: Answer Updated (quantity changed)

Both triggers lead to the same processing steps.

Trigger Conditions

Some triggers support conditions:

Trigger: Answer Updated
  Field: status
  Condition: new_value = "approved"

The workflow only runs when conditions are met.

Trigger Context

When a trigger fires, it provides context:

Form Submitted / Entry Created

ContextDescription
entryThe current entry
form_versionThe form definition
answersAll current answer values

Answer Updated

ContextDescription
field_idWhich field changed
old_valuePrevious value
new_valueNew value
entryThe current entry

Button Clicked

ContextDescription
button_idWhich button was clicked
entryThe current entry

API Request

ContextDescription
requestRequest data (body, headers)
entryThe target entry (if specified)

Trigger Best Practices

Choose the Right Trigger

NeedBest Trigger
Run once at endForm Submitted
React to changesAnswer Updated
Admin actionManual
External integrationAPI Request

Avoid Loops

Be careful with Answer Updated + Update Value:

  • Updating a watched field triggers again
  • Can cause infinite loops
  • Use conditions to prevent

Multiple Workflows

When to use multiple workflows:

  • Different triggers need different actions
  • Independent processes
  • Different error handling needs

When to use one workflow:

  • Same trigger, same process
  • Shared steps
  • Single transaction

Trigger Priority

When multiple triggers fire simultaneously:

  1. Triggers execute in definition order
  2. Each workflow runs to completion
  3. Results are merged

Testing Triggers

Preview Mode

  1. Open form in preview
  2. Perform trigger action
  3. Check workflow run logs

Manual Testing

  1. Create a test entry
  2. Use Manual trigger to test
  3. Review run details

Debugging

If trigger doesn’t fire:

  • Check trigger configuration
  • Verify field IDs are correct
  • Check conditions
  • Review workflow is published