Show/hide toggle for input fields containing sensitive data

It'd be great to have a built-in way of adding a show/hide toggle to input fields (screenshot attached). This is useful for sensitive data that needs to always be accessible in the form but that you don't want displayed by default.
No description
6 Replies
Patrick Boivin
Patrick Boivin11mo ago
Should be relatively easy with a suffixAction(), but would be cool to have as a plugin
binaryfire
binaryfire11mo ago
Never mind, looks like there's already a PR for this: https://github.com/filamentphp/filament/pull/7492
GitHub
Feature: revealable password fields by Stichoza · Pull Request #749...
Changes have been thoroughly tested to not break existing functionality. New functionality has been documented or existing documentation has been updated to reflect changes. Visual changes are ex...
krekas
krekas11mo ago
Almost a month later and not murged. Would be faster to build your own for now by adding suffix action and changing type
filament_newbie
filament_newbie10mo ago
is there a way to do this not only for password, for others as well? like email or phone numbers? need to hide for the last 6 characters
krekas
krekas10mo ago
possible. but create your own #❓┊help thread