This module provides a
CopyField for Silverstripe CMS. The
CopyField includes a copy button to make it easy to copy the value of the field to the clipboard.
composer require maxime-rainville/silverstripe-copy-field
The CopyField defaults to being read only. If you want to hide the value, you can use the
setObfuscate method on the
CopyField to get it to render as a password.
use MaximeRainville\CopyField\CopyField; ... $fields->addFieldsToTab( 'Root.Main', [ CopyField::create('APIKey', 'API Key', $this->Key), CopyField::create('APISecret', 'API Secret', $this->Secret)->setObfuscate(true) ] );
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem