Loading...
Skip navigation
Black Week: 25% off all TYPO3 extensions from November 23 to 30 – services and SaaS offers are excluded.
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

Secret field

The Secret field is a single-line input whose value is masked by default like a password field. The button next to the input toggles whether the value is visible.

Definition

return [
    'columns' => [
        'secret' => [
            'label' => $lll . '.secret',
            'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('secret'),
        ],
    ],
];

Options

The field supports the size, default, and maxLength options. The usual parameters for required and read-only fields are also available.

'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('secret', true, false, '', [
    'size' => 40,
    'default' => '',
    'maxLength' => 255,
]),

Security note

The value is stored unchanged as plain text in the database. The field only masks the value in the backend input; it does not encrypt it. It is therefore not suitable for securely storing passwords or other credentials.

Last change: 2026-11-24
Documentation
TYPO3 Additional-TCA Extension

TYPO3 Additional-TCA by coding.ms

The TYPO3 Additional-TCA Extension keeps TCA configurations clean and maintainable. It provides reusable methods for tab labels and common fields such as language and visibility, plus practical Form Engine fields for currency, percent, time, weight, phone numbers, masked secret values, notices, date and datetime values, badge suggestions, and collapsible textareas.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
YSG_________UOC______
__U____I______T___U3F
6J8___KIT___3YD______
__1____K______7___U1B
338_________8DR______
Dein Online-
Adventskalender
Entdecken →