Developers
This part of the documentation is for Magento developers who build on WebForms: theme developers, module authors and anyone who connects WebForms to another system. Here you'll find the code side: templates, CSS hooks, storefront JavaScript, extension points, the APIs and the command line.
Start with Getting started for developers to see which module holds what and which page covers each way to extend it. Theme work continues with Theme and template overrides and Styling contract; module work with Events, plugins and registries. Custom code written for WebForms 3 starts with Custom code from WebForms 3. To make forms match your theme without copying templates, start with Make forms look like your theme.
Getting started for developers Where the WebForms code lives and the supported ways to extend it. Custom code from WebForms 3 What changed for a module, theme or integration written against the WebForms 3 PHP API, and what to change in it for WebForms 4. Extension points Where a module of your own can extend WebForms, how far you can rely on each extension point, and the page that explains it. Theme and template overrides Override form templates in Luma, Hyvä and Breeze themes. Styling contract The data attributes and CSS custom properties your theme can rely on. Make forms look like your theme Turn off the Modern field style, map Hyvä classes and restyle the popup so forms match your theme. Frontend APIs The storefront JavaScript API and form scripts. Email template overrides Which Magento email templates WebForms still renders, and how to override them from a theme. PDF templates Write a PDF document's whole page in HTML: slots, merge tags, the HTML and CSS that print, images and limits. Custom field type Add your own field type to the builder palette and the storefront form. Custom CAPTCHA provider Add your own CAPTCHA service next to reCAPTCHA, hCaptcha and Turnstile. Events, plugins and registries Hook into submissions and notifications with events, plugins and registries. Events reference Every server-side event WebForms dispatches, with its payload. Add-on integration contract What an add-on implements to send submissions to another service. Form document schema The JSON document behind every form: where the JSON Schema lives, what it describes, and what the server checks on top. Import row schema The shape of one submission row for a bulk import, the checks WebForms runs on it and the reason codes. REST API Manage forms and submissions over REST: authentication, permissions, request conventions and errors of the Management API. GraphQL Load a form, check its logic, upload files and submit it from a headless storefront; read submissions as a customer or an admin. MCP server Connect an AI assistant to WebForms through the WebForms MCP server: setup, several stores, the tools it offers and how it asks for approval. CLI, cron and queues WebForms console commands, cron jobs and the message queue consumer.