Backoffice Extension Points
Overview of the backoffice extension points that Umbraco Forms exposes, including property editors, field previews, and setting value converters.
The Umbraco Forms backoffice is built on the Umbraco CMS extension system. You extend it by registering manifests, each with a type that tells Umbraco what kind of extension it is.
This article lists the extension points that Forms adds on top of the CMS. Use it as a map: each point links to the detailed guidance for that scenario.
Before you start, install and configure the @umbraco-forms/backoffice package as described in the Extending article.
Overview
Property editor UI
propertyEditorUi
Render the settings UI for a field type or workflow type.
Field preview
formsFieldPreview
Render a preview of a field type in the form designer.
Setting value converter
formsSettingValueConverter
Convert a setting value between the editor and storage.
Server-side providers, such as field types and workflow types, are registered in C#. These are covered in Adding A Type To The Provider Model.
Registering extensions
Forms uses the same registration mechanism as the CMS. You declare your manifests and register them through your package's entry point.
import { manifests as fieldPreviewManifests } from "./field-preview/manifests.js";
import { manifests as settingValueConverterManifests } from "./setting-value-converter/manifests.js";
const manifests = [...fieldPreviewManifests, ...settingValueConverterManifests];
export const onInit = (host, extensionRegistry) => {
extensionRegistry.registerMany(manifests);
};For the full setup, including the umbraco-package.json manifest that points to this entry, see the Register an Extension article.
Property editor UIs for settings
Field types and workflow types expose their settings through a standard CMS propertyEditorUi. You register a property editor UI and reference its alias from the type's EditView or setting definition.
A common requirement is to read the open form from a settings editor. For example, to list the form's fields in a mapping grid. Consume the Form Workspace Context to do this.
For full examples of field and setting editors, see Adding A Field Type To Umbraco Forms and Adding A Workflow Type To Umbraco Forms.
Field previews
A field preview renders a representation of a field type in the form designer. The preview receives the field's settings and prevalues. Extend FormsFieldPreviewBaseElement and read settings with getSettingValue(alias).
Register the preview with a formsFieldPreview manifest:
Setting value converters
A setting value converter converts a setting value between the format used by the editor and the format stored with the form. Implement FormsSettingValueConverterApi and tie it to a property editor UI through propertyEditorUiAlias.
For more on settings and converters, see Adding A Field Type To Umbraco Forms.
Last updated
Was this helpful?