drupal-form-ajax
CommunityStreamline Drupal AJAX form development.
Authoredutrul
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Drupal AJAX forms can be verbose and error-prone. This skill consolidates common patterns for AJAX callbacks, AjaxResponse commands, and dynamic form rebuilding into a clear, reusable guide.
Core Features & Use Cases
- Unified AJAX pattern: Centralizes the callback structure, wrapper handling, and build/rebuild flow for Drupal 11 forms.
- Command examples: Demonstrates usage of ReplaceCommand, HtmlCommand, InvokeCommand, and MessageCommand to update the UI without a full page reload.
- Real-world scenarios: Supports dynamic field updates, conditional element visibility, and multi-step forms triggered by user actions.
Quick Start
Implement the provided Drupal AJAX form pattern in your module's Form class and adapt it to your form elements.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: drupal-form-ajax Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-form-ajax Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.