© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Martin Lakrids

TextInput get disabled state in placeholder callback?

How can I access the disabled state from the placeholder callback? To avoid repetition

TextInput::make('title')
        ->disabled(fn (Get $get) => someIntenseCalculation($get('someOtherField')))
        ->placeholder(fn ($getDisabledStateSomehow) => $getDisabledStateSomehow ? 'Field disabled' : 'Enter title')
TextInput::make('title')
        ->disabled(fn (Get $get) => someIntenseCalculation($get('someOtherField')))
        ->placeholder(fn ($getDisabledStateSomehow) => $getDisabledStateSomehow ? 'Field disabled' : 'Enter title')
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Table TextInput Conditionally Disabled
FilamentFFilament / ❓┊help
2y ago
FileUpload with TextInput disabled.
FilamentFFilament / ❓┊help
3y ago
Textinput value like Placeholder content?
FilamentFFilament / ❓┊help
3y ago
set TextInput placeholder attribute live from other field
FilamentFFilament / ❓┊help
13mo ago