HiddenInput
This class represents an HTML hidden input element used within web forms. It inherits from the base input widget and specifies a hidden input type and a dedicated template for rendering non-visible data fields.
Attributes
| Attribute | Type | Description |
|---|---|---|
| input_type | string = hidden | The HTML input type attribute value used when rendering the widget, set to 'hidden' to ensure the field is not visible to the user. |
| template_name | string = django/forms/widgets/hidden.html | The file path to the Django HTML template used to render the hidden input widget. |
Constructor
Signature
def HiddenInput() - > null
Signature
def HiddenInput(
attrs: dict = null
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = null | A dictionary containing HTML attributes to be rendered on the hidden input element. |