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.

form:
  tabs:
    - name: tabLink
      label: Link
      fields:
        - 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

Value

 form


 tabs


 tabLink


 fields


 link


 linkTitle


 linkType


 class

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

 defaultValue

external

 type

String

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

  • No labels