Automation Developer Overview

Elzo Forms PRO automations are built around rules, conditions, and actions. Developers can extend automations by registering custom action classes, custom condition classes, or using lifecycle hooks.

Automation context

Automation actions receive a context array that can include:

  • form — form object.
  • submission — submission object.
  • fields_by_id — submitted values by field ID.
  • fields_by_key — submitted values by field key.
  • field_items — submitted field item data.
  • request, server, and cookies.
  • user — current WordPress user.
  • current_url, current_page_id, and current_post_type.
  • extra — extra context passed to the automation engine.

Automation result patches

Actions can return context_patch to make values available to later actions, or response_patch to affect the submission response.