Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
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
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
.