Skip to main content

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

AttributeTypeDescription
input_typestring = hiddenThe HTML input type attribute value used when rendering the widget, set to 'hidden' to ensure the field is not visible to the user.
template_namestring = django/forms/widgets/hidden.htmlThe 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

NameTypeDescription
attrsdict = nullA dictionary containing HTML attributes to be rendered on the hidden input element.