Contao Summit 2026 in Leipzig 15th and 16th October

Password

This widget renders a type="password" text field, with the ability to show the otherwise obfuscated password (when newly entered).

Password Password

Options

This widget has no special options, but all options for the text widget are also relevant.

Example

// …
'myPassword' => [
    'inputType' => 'password',
    'eval' => [
        'mandatory' => true,
        'minlength' => Config::get('minPasswordLength'),
        'tl_class' => 'w50'
    ],
    'sql' => ['type' => 'string', 'length' => 255, 'default' => ''],
],
// …