Magnolia 6.0 reached end of life on June 26, 2019. This branch is no longer supported, see End-of-life policy.

Page tree
Skip to end of metadata
Go to start of metadata

HiddenFieldDefinition defines a hidden field. Magnolia does not render the field on the user interface. You can use it to submit additional parameters with a form such as campaign information. The field does not have any properties of its own.

class: info.magnolia.ui.form.field.definition.HiddenFieldDefinition

fieldType: hidden

Hidden field properties

Example where a hidden field is used to store the type of a link, in this case an external link.

form:
  tabs:
    - name: tabLink
      label: Link
      fields:
        - name: link
          fieldType: text
          label: Link
        - name: linkTitle
          fieldType: text
          label: Link title
        - name: linkType
          fieldType: hidden
          defaultValue: external
          type: String

Node name

Value

 form


 tabs


 tabLink


 fields


 link


 linkTitle


 linkType


 fieldType

hidden

 defaultValue

external

 type

String

See Referencing fields for further information.

The only relevant common field properties you can use to configure the hidden field are defaultValue and type .