© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Mike Wazowski

Hide Text Form Input based on Selected Data from other Form Components

Hi there I have this codes, and I can't seem to make the expected hidden form behavior. The the other_information text input should show based on the data of the status Radio.


  Radio::make('status')
                        ->options([
                            0 => 'Open',
                            1 => 'Closed',
                            2 => 'Done',
                        ])
                        ->default(0)
                        ->required(),
                    TextInput::make('other_information')
                        ->numeric()
                        ->visible(fn ($get) => $get('./status') < 1),
  Radio::make('status')
                        ->options([
                            0 => 'Open',
                            1 => 'Closed',
                            2 => 'Done',
                        ])
                        ->default(0)
                        ->required(),
                    TextInput::make('other_information')
                        ->numeric()
                        ->visible(fn ($get) => $get('./status') < 1),


Does anyone know how to do this? Thanks a bunch.
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

Hide Input Form inside Repeater based on condition
FilamentFFilament / ❓┊help
16mo ago
toggle value for hide form text input
FilamentFFilament / ❓┊help
2y ago
text input field update based on another text input
FilamentFFilament / ❓┊help
2y ago
Hide action based on form change
FilamentFFilament / ❓┊help
2y ago