Skip to main content

Form

A powerful form component with client-side validation, AJAX submission, and seamless Extbase integration.

Features

Installation

typo3 ui:add form

Read more about installing Components and Primitives.

API Reference

The following tables cover the available props of the Fluid Primitives.

form

Submits and manages the form state. Renders a <form> element.

NameDescriptionRequiredDefault
actionUristring
The resolved form action URI to submit to directly.
No
-
actionstring
The Extbase action name used to build the form action URI.
No
-
extensionNamestring
The Extbase extension name used to build the form action URI.
No
-
pluginNamestring
The Extbase plugin name used to build the form action URI.
No
-
controllerstring
The Extbase controller name used to build the form action URI.
No
-
argumentsarray
The Extbase arguments used to build the form action URI.
No
-
pageUidint
The target page UID used to build the form action URI.
No
-
objectNamestring
The object name prefix used for nested form field names.
No
-
objectmixed
The bound object used for form value mapping.
No
-
methodstring
The HTTP method used for form submission.
No
'post'

Anatomy

<primitives:form>
    <primitives:field.root>
        <primitives:field.label />
        <primitives:field.control asChild="{true}">
            <!-- Your form input here -->
        </primitives:field.control>
        <primitives:field.error />
    </primitives:field.root>
</primitives:form>