Field Widget Actions is a developer-friendly framework that allows site builders and developers to attach actionable buttons directly to field widgets on entity edit forms. Originally developed as part of the AI module, it has grown into a standalone architectural toolkit that works for any business logic — from AI-powered content generation to triggering ECA workflows.

Screencast Field Widget Actions

Main features / functionalities:

  • Button Actions on Field Widgets:
    Attach AJAX-enabled action buttons to any field widget on entity forms (Nodes, Media, Users, etc.) without modifying core form code.
  • Plugin-Based Architecture:
    Developers can create custom actions using a simple plugin system (@FieldWidgetAction annotation). The module handles all UI integration, AJAX handling, and settings storage automatically.
  • Manage Form Display Integration:
    Configure which actions appear on which fields directly from the standard "Manage Form Display" interface — no extra admin screens needed.
  • Multi-value Field Support:
    Actions can target individual items in a multi-value field or the entire field at once, giving full flexibility for complex data structures.
  • Suggestions & Modal Support:
    Actions can either directly populate a field or present the editor with a list of suggestions in a modal dialog, letting the user choose the best result before applying it.

Integration examples:

  • AI Module: Powers "Fill with AI" and "Generate Alt Text" buttons on text and image fields.
  • ECA Module: Allows site builders to trigger complex backend workflows directly from a field widget without writing custom code.
  • Custom Actions: Any PHP developer can implement the FieldWidgetActionInterface to attach their own business logic to any field on any entity form.

Requirements / dependencies:

  • Drupal core (no additional module dependencies required for the base framework).
  • Optional: AI module for AI-powered field actions.
  • Optional: ECA module for event-condition-action workflow triggers.

Supporting organization

1xINTERNET logo
1xINTERNET is a full-service digital agency focusing on robust and innovative digital solutions based on Drupal. As a Diamond Certified Drupal Partner and active community contributor, 1xINTERNET supports clients throughout their digital transformation journey.

Supporting organizations: 
Sponsor Development
Support with functionality and development
AttachmentSize
Screencast of Field Widget Actions337.97 KB

Project information

Releases