The Core Component Form Hidden component allows for the display of a hidden field.
The Core Component Form Hidden Component allows for the creation of hidden fields to pass information about the current page back to AEM and is intended to be used along with the form container component.
The field properties can be defined by the content editor in the configure dialog.
This document describes v1 of the Form Hidden Component, originally introduced with release 1.0.0 of the Core Components with AEM 6.3.
The following table lists the compatibility of v1 of the Form Hidden Component.
AEM Version | Form Hidden Component v1 |
---|---|
6.3 | Compatible |
6.4 | Compatible |
This document describes v1 of the Form Hidden Component.
For details of the current version of the Form Hidden Component, see the Form Hidden Component document.
The following is sample taken from We.Retail.
<div class="cmp cmp-form aem-GridColumn aem-GridColumn--default--12">
<form method="POST" action="/content/we-retail/us/en/experience.html" id="new_form" name="new_form" enctype="multipart/form-data" class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">
<input type="hidden" name=":formstart" value="/content/we-retail/us/en/experience/jcr:content/root/responsivegrid/container">
<div class="visible aem-GridColumn aem-GridColumn--default--12">
<input type="hidden" id="ghostToast" name="Invisible Toast" value="ghostToast">
</div>
</form>
</div>
"container": {
"columnClassNames": "aem-GridColumn aem-GridColumn--default--12",
"columnCount": 12,
"gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
":items": {
"hidden": {
"columnClassNames": "aem-GridColumn aem-GridColumn--default--12",
":type": "weretail/components/form/hidden",
"name": "Invisible Toast",
"id": "ghostToast",
"value": "ghostToast"
}
},
":itemsOrder": [
"hidden"
],
":type": "weretail/components/form/container"
}
JSON export from the Core Components requires release 1.1.0 of the Core Components. Please see the compatibility information for Core Components v1 for more information.
The configure dialog allows the content author to define the parameters of the hidden field.
There is no design dialog for the Form Hidden component.
The latest technical documentation about the Form Hidden Component can be found on GitHub.
The entire core components project can be downloaded from GitHub.
Further details about developing Core Components can be found in the Core Components developer documentation.