Hidden
Supported products
- Central CMS
- Central Forms
- Central Connect
Generates a hidden text input which can be used to store non user-editable data.
All presentational markup and classes will be removed from this input to prevent it from affecting the form layout. There is no need to supply a label.
Basic usage
- Twig
- HTML
{{
form.hidden({
'id': 'hidden-1',
'name': 'hidden-1',
'value': 'horcrux'
})
}}
<input id="hidden-1" name="hidden-1" value="horcrux" type="hidden" />
Helper options
You can configure this helper using the common helper options.