Hidden component

The Hidden component is a form element that implements the HTML <input type="hidden"> field.

Configuration options

Option Description Type Default
component The path to the component’s JS constructor in terms of RequireJS. String Magento_Ui/js/form/element/abstract
template The path to the component’s .html template. String ui/form/element/hidden

Source files

Extends UiElement:

Examples

Integrate the Hidden component with the Form component

This example integrates the Hidden component with the Form component.

1
2
3
4
5
6
7
8
9
10
11
<form>
    ...
    <fieldset>
        ...
        <hidden name="hidden_example">
            <settings>
                <value>hidden value</value>
            </settings>
        </hidden>
    </fieldset>
</form>

Result

Hidden Component example