{"record":{"id":"a20617c4b704bead","repo":"filamentphp/filament","slug":"the-text-input-this-getstatepath-is-not-a","errorCode":null,"errorMessage":"The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()].","messagePattern":"The text input \\[(.+?)\\] is not a \\[password\\(\\)\\], so it cannot be \\[revealable\\(\\)\\]\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/forms/src/Components/TextInput.php","lineNumber":170,"sourceCode":"\n    public function revealable(bool | Closure $condition = true): static\n    {\n        $this->isRevealable = $condition;\n        $this->suffixActions([\n            TextInput\\Actions\\ShowPasswordAction::make()->visible($condition),\n            TextInput\\Actions\\HidePasswordAction::make()->visible($condition),\n        ]);\n\n        return $this;\n    }\n\n    public function isPasswordRevealable(): bool\n    {\n        if (! $this->evaluate($this->isRevealable)) {\n            return false;\n        }\n\n        return $this->isPassword() ?: throw new LogicException(\"The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()].\");\n    }\n\n    public function copyable(\n        bool | Closure $condition = true,\n        string | Closure | null $copyMessage = null,\n        int | Closure | null $copyMessageDuration = null\n    ): static {\n        $this->isCopyable = $condition;\n\n        $this->suffixAction(\n            TextInput\\Actions\\CopyAction::make()\n                ->copyMessage($copyMessage)\n                ->copyMessageDuration($copyMessageDuration)\n                ->visible($condition),\n        );\n\n        return $this;\n    }","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/forms/src/Components/TextInput.php#L152-L188","documentation":"Error \"The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/forms/src/Components/TextInput.php:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}