Skip to main content

Extension points

Overview​

Find what you want your module to do with WebForms 4 below. Each row says whether you can rely on it and links to the page that explains it.

Short names are relative to MageMe\WebForms\: read Api\FormRepositoryInterface as MageMe\WebForms\Api\FormRepositoryInterface.

Start with your task​

You want to Start here Then
Send submissions to a CRM or a helpdesk Add-on integration contract Remote option lists for options from the service, store view values for a mapping per store view
Offer options from a service in a field or a setting Remote option lists
Add a field type Custom field type
Keep data of your own on each submission Submission data
Change a form before it's saved Form data
Ship a starter form with your module Form templates Form document schema
Run code when something happens to a form or a submission Events, plugins and registries
Make forms look like your theme Make forms look like your theme

Can I build on it?​

Each row below has one of these labels.

Label What it means for you
Public Made for other modules. It carries @api, has an XSD, or MageMe's own add-ons build on it.
Public for subclasses A base class you extend, and its Context: a class that bundles what the base class needs from WebForms. Take the Context in your constructor and pass it to the parent unchanged. When the base class needs something new, it goes into the Context, so your constructor doesn't have to change.
Service contract An @api interface behind the REST API and the MCP server. Its signatures in the code are the contract. The REST pages say what it does.
Internal WebForms' own wiring. It can change in any release. Don't build on it. These are listed at the end for reference.

Extension points you can use​

Storefront and theme​

You want to What you use Label
Override a storefront template in your theme Luma and Breeze: the core templates; Hyvä: the companion's Public
Add CSS to forms in a Luma or Breeze theme MageMe_WebForms/web/css/form-theme.less Public
Style forms from your theme's CSS data-wf-* attributes and --wf-* tokens. The contract is versioned. Public
Give fields and the popup your theme's classes Hyvä Theme CSS Classes, window.mmDialogClasses Public
Work with a form in the browser Storefront globals, engine hooks, events, form scripts, field adapters Public
Place a form from layout XML or your own template The form block Public
Extend the form block Block\Form\Context Public for subclasses

Forms and fields​

You want to What you use Label
Add a field type field_types in etc/webforms.xml (XSD) Public
Write the field model Model\Field\Context Public for subclasses
Connect your field type to the admin, the storefront block and uploads Api\Ui\FieldUiInterface, Api\Ui\FieldResultFormInterface, Api\Ui\FieldResultListingColumnInterface, Api\Utility\Field\FieldBlockInterface, Api\Utility\Field\UploadFieldInterface, Api\Utility\ExportValueConverterInterface. None of them carries @api. Public
Let forms with your field type be shared between visitors in the cache cacheSafeFieldTypes Public
Add a CAPTCHA service captcha_types in etc/webforms.xml Public
Ship a starter form etc/webforms_templates.xml (XSD) Public
Add a PDF template etc/webforms_pdf_templates.xml (XSD) Public
Override an email template in a theme Magento email templates that WebForms renders Public
Change a form right before it's saved savePreparers, Api\FormSavePreparerInterface Public
Find fields of given types on all live forms Api\LiveFieldCatalogInterface Public
Read and change the store view values of a form, section, field or rule Api\StoreRepositoryInterface, Api\Data\StoreInterface Public

Submissions​

You want to What you use Label
Read and save forms, fields, sections and submissions Api\FormRepositoryInterface, Api\FieldRepositoryInterface, Api\ResultRepositoryInterface and their Api\Data interfaces Public
Keep an array of your own on each submission serializedColumns, Api\ResultSerializedColumnsInterface Public
Check whether a form has submissions with your column set Api\SubmissionPresenceInterface Public
Read a submission's uploaded files Api\FileDropzoneRepositoryInterface, Api\FileGalleryRepositoryInterface Public
Erase your copy of a customer's personal data steps of Model\Erasure\PersonalDataErasure, Model\Erasure\ErasureStepInterface Public
Add variables to notifications and rows to answer lists Model\Notification\Render\ContributedVariables, Model\Result\AnswerRow\ExtraAnswerRows Public
Mark product attributes that hold a form id Ui\DataProvider\Product\Form\Modifier\FormPickers Public
Get the current form, submission or status on a page The holders in Model\Context Public

Integrations and admin​

You want to What you use Label
Send submissions to another service Model\Integration\DefinitionPool, Model\Integration\HandlerPool, Api\Integration*Interface, the integration exceptions Public
Add a settings section, a Send action or a grid mass action Ui\Component\Form\Form\Modifier\Integration\IntegrationSettings\Context, Controller\Adminhtml\Result\IntegrationSend\Context, Ui\Component\Result\Listing\MassActions\IntegrationSubAction\Context Public for subclasses
Offer options fetched from the service Model\Integration\RemoteList\AbstractRemoteOptions, Model\Integration\RemoteList\RemoteOptions\Context Public
Require a setting while your integration is on rules of Model\Form\AddonSettings\RequiredWhenEnabled Public
Add a section to the form settings The modifier pool of the form editor Public
Add an admin button Block\Adminhtml\Common\Button\ButtonContext Public for subclasses
Extend another base class Model\Form\Context, Model\Captcha\Context, the admin action contexts and the other Context classes. Not described elsewhere: pass the Context to the parent unchanged. Public for subclasses

Events, APIs and the command line​

You want to What you use Label
React to what WebForms does The events WebForms dispatches, listed in the Events reference Public
Change what an Api\ method does Plugins on Api\ interfaces Public
Call any other @api interface under Api\ The interface Service contract
Use the REST API, GraphQL or the MCP server REST API, GraphQL, MCP server Public
Run commands, cron jobs and the queue consumer — Public

Internal: don't build on these​

These are WebForms' own wiring. They can change in any release. Some are named by their last part only.

Show the internal points
Internal point What it is
kinds of Controller\Form\Fragment, Model\Render\Fragment\KindInterface Fragment kinds
factories, stackFactories, stackAdapters of Block\Init; kindAdapters, kindFactories of Model\Asset\StaticManifest Storefront form engines and adapters per stack
carriers of Model\Render\RenderPath Blocks that may hold a form's markup in place
Model\Asset\StackResolver The storefront stack. The Hyvä package switches it with a plugin.
The other StaticManifest arguments Engines, libraries, CSS lists
optionSuffixes of Model\Builder\FieldPreview Text the builder preview adds after an option label
OperatorRegistry, TriggerRegistry, WrapperRegistry, AuthStrategyPool, WebhookAdapterPool, OAuthProviderPool Logic operators, notification triggers, email frames, inbound mail authentication and webhooks. Events, plugins and registries lists them.
Command steps, config readers, palette seeds, admin grid builders and the other DI lists of the core —
Scripts under view/adminhtml/web/js/content-type/ Page Builder content types

What's next​

Applies to WebForms 4Last reviewed December 2, 2026