Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
3 replies
Chrysippus

Hide Select Dropdown depends on the Select Dropdown value?

Hello,

I want to hide a specific Select Dropdown something like this using afterStateUpdated() ,is this possible?

any suggestion to make this work with or without using afterStateUpdated?
  Select::make('type')
      ->required()
      ->options([
          'normal' => 'Normal',
          'service' => 'Service',
          'tier' => 'Tier',
      ])
      ->default('normal')
      ->live(onBlur: true)
      ->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
          if ($state == 'tier'){
              // show tier column
          }
      }),
  Select::make('tier')
      ->required()
      ->options([
          1 => 'Tier 1',
          2 => 'Tier 2',
          3 => 'Tier 3',
      ])
      ->default(1)
  Select::make('type')
      ->required()
      ->options([
          'normal' => 'Normal',
          'service' => 'Service',
          'tier' => 'Tier',
      ])
      ->default('normal')
      ->live(onBlur: true)
      ->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
          if ($state == 'tier'){
              // show tier column
          }
      }),
  Select::make('tier')
      ->required()
      ->options([
          1 => 'Tier 1',
          2 => 'Tier 2',
          3 => 'Tier 3',
      ])
      ->default(1)



TIA πŸ™
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

Select default value from select dropdown
FilamentFFilament / β“β”Šhelp
17mo ago
Select dropdown on importer.
FilamentFFilament / β“β”Šhelp
2y ago
Overflow Select dropdown on modal
FilamentFFilament / β“β”Šhelp
2y ago
ViewRecord - Adding Select Dropdown
FilamentFFilament / β“β”Šhelp
2y ago