Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.46 KB

password.rst

File metadata and controls

56 lines (40 loc) · 2.46 KB

single: Forms; Fields; password

password Field Type

The password field renders an input password text box.

Rendered as input password field
Options
Inherited options
Parent type text</reference/forms/types/text>
Class Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType

Field Options

always_empty

type: Boolean default: true

If set to true, the field will always render blank, even if the corresponding field has a value. When set to false, the password field will be rendered with the value attribute set to its true value.

Put simply, if for some reason you want to render your password field with the password value already entered into the box, set this to false.

Inherited Options

These options inherit from the field</reference/forms/types/field> type: