FilamentF
Filament2y ago
ico

Filament v2 Form Builder: How to add button in Repeater ?

How do i add a button in a repeater item ?

I have a Repeater with 4 TextInputs that represent some product data. I want to add a button next to them, so when the user clicks on it it will show more information about the fields, or will print out in a PDF format information about the product

Repeater::make('inputs')
    ->label('')
    ->schema([
        TextInput::make('scannedBarcode')
            ->disabled()
            ->columnSpanFull(),
    
        TextInput::make('plannedGoodCode')
            ->disabled(),
    
        TextInput::make('plannedGoodName')
            ->disabled(),
    
        TextInput::make('loadedQuantity')
            ->disabled(),

        // add button here

    ])
    ->disableItemMovement()
    ->disableItemCreation()
    ->columns(3)
Was this page helpful?