Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML Wrap
alignright
classmenu

Related topics:

A field is an HTML form element that allows a user to perform a task such as enter text, upload an image or select a date. Magnolia ships with a number of fields that should fulfill most needs.

Table of Contents

Example

This form has four text fields and one checkbox field:

...

To add a field on your form, define the field inside a tab (see example below). At minimum, a field definition must contain a class or a fieldType property which tells Magnolia what type of field it should render. Set the property value to a valid field definition class name (for class) or to a valid field alias name (for fieldType). All fields support further common properties for defining things such as labels and descriptions.

...

See the complete form definition in Git.

Common field properties

You can use these properties with any field unless specified otherwise.

Include Page
_Common field properties
_Common field properties

Field types

Include Page
_field definition classes
_field definition classes

Transformer classes

Include Page
_Transformer classes
_Transformer classes