Hidden component
The Hidden component is a form element that implements the HTML <input type="hidden"> field.
Options
Option
Description
Type
Default
componentThe path to the component’s JS constructor in terms of RequireJS.
String
Magento_Ui/js/form/element/abstracttemplateThe path to the component’s
.html template.String
ui/form/element/hiddenSource files
Extends UiElement:
- app/code/Magento/Ui/view/base/web/js/form/element/abstract.js
- app/code/Magento/Ui/view/base/web/templates/form/element/hidden.html
Examples
Integration
This example integrates the Hidden component with the Form component.
<form>
...
<fieldset>
...
<hidden name="hidden_example">
<settings>
<value>hidden value</value>
</settings>
</hidden>
</fieldset>
</form>
Result