© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
18 replies
Abi

How to show/hide fields inside a repeater with a reactive field in a repeater?

I am using the Standalone Form Builder.
I have to show and hide a
TextInput
TextInput
within a repeater based on the value selected on a
Select
Select
element inside the repeater.

Here is what I have
 Repeater::make('items')
      ->label('Items')
      ->schema([
          Select::make('item')->label('What item on this tracking number are you claiming?')->options([
              'item1' => 'Item 1',
              'item2' => 'Item 2',
              'item3' => 'Item 3',
          ])->reactive(),
          Radio::make('claim_type')
              ->label('Claim Type')
              ->inline()
              ->options([
                  'damage' => 'Damage',
                  'lost' => 'Lost',
                  'stolen' => 'Stolen',
              ])->visible(?),
 Repeater::make('items')
      ->label('Items')
      ->schema([
          Select::make('item')->label('What item on this tracking number are you claiming?')->options([
              'item1' => 'Item 1',
              'item2' => 'Item 2',
              'item3' => 'Item 3',
          ])->reactive(),
          Radio::make('claim_type')
              ->label('Claim Type')
              ->inline()
              ->options([
                  'damage' => 'Damage',
                  'lost' => 'Lost',
                  'stolen' => 'Stolen',
              ])->visible(?),

I am not sure what actually goes inside the
visible
visible
method. I am assuming there is a way to get the current item index on the repeater and check for the value. Any advice?
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

Can't dynamicly show or hide fields in a repeater
FilamentFFilament / ❓┊help
3y ago
Reactive Behavior Not Working for Fields Inside Repeater
FilamentFFilament / ❓┊help
14mo ago
Repeater: How can I conditionally show/hide Delete button in Repeater?
FilamentFFilament / ❓┊help
2y ago
how can I hide a form field in first repeater
FilamentFFilament / ❓┊help
3y ago