FilamentF
Filament2y ago
HL

How can I conditionally disable a custom input field?

If I do this:
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
    <x-filament::input.wrapper :disabled=$isDisabled()>
        <x-filament::input type="text" :disabled=$isDisabled() />
...

$isDisabled() always returns true and the field is disabled, either if I use:
CopyableTextInput::make('loginname')
  ->disable(),

or
CopyableTextInput::make('loginname')
Was this page helpful?