Blog 4 Field definition
You can use the following properties with any complex field (composite, multi, static and switchable fields).
You can download an example light module called field-examples-module . The module contains working field definitions to use out of the box for all fields in this section. Follow the instructions below to preview them in your local Magnolia installation.
Field examples module
You can download an example light module called field-examples-module . The module contains working field definitions to use out of the box for all fields in this section. Follow the instructions below to preview them in your local Magnolia installation.

Example definition
To add a field to your form, you need to define a field. Field definition must contain a class or $type property, which tells Magnolia what type of field to render. Set the property value to a fully qualified class name (for class) or field alias (for $type). Depending on the field type, a number of common simple field properties or complex field properties are supported.
Common complex field properties
First Question
First Answer
Second Question
Second Answer

