---
title: "Feature: #110851 - Copy a generated password to the clipboard"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-110851-1790717834"
source: "Changelog/15.0/Feature-110851-CopyAGeneratedPasswordToTheClipboard.rst"
typo3-version: "15.0"
typo3-major: 15
type: "feature"
issue: 110851
forge: "https://forge.typo3.org/issues/110851"
tags: ["Backend", "TCA", "ext:backend"]
rendered: "2026-10-07T19:18:07+00:00"
---

# Feature: #110851 - Copy a generated password to the clipboard {#feature-110851-1790717834}

See [forge#110851](https://forge.typo3.org/issues/110851)

## Description {#description}

Fields of TCA type `password` accept the new option
`copyToClipboard` below `appearance`.

When it is enabled, a button copying the password to the clipboard is
attached to the field.

A stored password is only shown obfuscated, so the button is offered
once the field holds a plain value, typically one created with the
`passwordGenerator` field control, and until the record is saved.

**EXT:my_extension/Configuration/TCA/tx_myextension_token.php**

```php
'secret' => [
    'label' => 'Secret',
    'config' => [
        'type' => 'password',
        'appearance' => [
            'copyToClipboard' => true,
        ],
        'fieldControl' => [
            'passwordGenerator' => [
                'renderType' => 'passwordGenerator',
                'options' => [
                    'allowEdit' => false,
                ],
            ],
        ],
    ],
],
```

The option defaults to `false`. The secrets of reactions and webhooks
in **Administration > Integrations** enable it.

## Impact {#impact}

A generated password shown in a field that may not be edited can be copied with
a single click. Until now its text could not be selected in such a field, so it
was lost once the record was saved.
