AutomatorWP Integration
Use a Core Forms submission as a native trigger in AutomatorWP automations.
Integration ID: core_forms / Trigger: core_forms_submit_form
Class: Core_Forms\Integrations\AutomationIntegrations
Source: src/integrations/class-automation-integrations.php
Unlike the CRM actions, this is not something you configure on the form's Actions tab. When AutomatorWP is active, Core Forms registers itself as an AutomatorWP integration automatically, and you build the automation inside AutomatorWP.
Requirements
The AutomatorWP plugin must be active. The integration registers on init only when automatorwp_register_integration() and automatorwp_register_trigger() exist. No Core Forms settings are needed.
Setup
- Install and activate AutomatorWP.
- Go to AutomatorWP > Add New and create an automation.
- Add a trigger and choose the Core Forms integration (it appears with the Core Forms icon).
- Select A Core Forms form is submitted.
- Add any AutomatorWP actions (send email, add to CRM, enroll in course, etc.).
Trigger Details
| Property | Value |
|---|---|
| Trigger label | A Core Forms form is submitted |
| Fires on | Every successful submission (cf_form_success hook) |
| Anonymous | Yes -- fires for logged-out visitors as well |
| Log label | Core Forms submission received |
The trigger fires after the submission is validated and stored, i.e. only for successful submissions.
Available Tags
These AutomatorWP tags can be used in subsequent actions of the automation:
| Tag | Type | Description |
|---|---|---|
form_id |
integer | ID of the submitted form |
submission_id |
integer | ID of the stored submission |
form_field:FIELD_NAME |
text | Value of a single submitted field, by its field name |
For example, form_field:email resolves to the value of the form's email field. All submitted fields are passed to AutomatorWP in the event payload, so any field name used in the form is addressable.
How It Works
- Core Forms fires
cf_form_successwith the submission and form objects after every successful submission. - The bridge calls
automatorwp_trigger_event()with the trigger name, the current user ID, the form ID, the submission ID, and the full array of submitted fields. - AutomatorWP matches the event against your automations and runs their actions, resolving the tags above.
Filtering by Form
Use the trigger's own options in AutomatorWP (or a condition on the form_id tag, depending on your AutomatorWP version/add-ons) to limit an automation to a specific form. The Core Forms side always emits the event for every form.
Troubleshooting
- Core Forms not listed in AutomatorWP: confirm both plugins are active and that AutomatorWP is a version that provides
automatorwp_register_integration(). - Automation not firing: the trigger only fires on successful submissions. Failed validation or spam-blocked submissions do not emit the event.
- Empty field tags:
form_field:FIELD_NAMEmust match the field's name attribute exactly.
See also: Integrations overview, Uncanny Automator, OttoKit.