Magnolia 5.4 reached end of life on November 15, 2018. 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

Hidden field properties

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

    - name: tabLink
      label: Link
        - name: link
          class: info.magnolia.ui.form.field.definition.TextFieldDefinition
          label: Link
        - name: linkTitle
          class: info.magnolia.ui.form.field.definition.TextFieldDefinition
          label: Link title
        - name: linkType
          class: info.magnolia.ui.form.field.definition.HiddenFieldDefinition
          defaultValue: external
          type: String

Node name















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

  • No labels