FilamentF
Filament9mo ago
Bruno

I need help with bulkaction checkbox

class Storage extends Page implements HasForms, HasTable
{

    public function form(Form $form): Form
    {
        return $form
            ->schema([

                OtpInput::make('qrcode_id')
                    ->reactive(),

            ]);
    }

    public function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('qrcode.hash')
                    ->label('Qrcode')
                    ->sortable()
                    ->formatStateUsing(function ($state) {
                        return substr($state, 0, 3) . '-' . substr($state, 3, 3) . '-' . substr($state, 6, 3);
                    }),
                TextColumn::make('name')
                    ->label('Nome')
                    ->sortable()
                    ->wrap(),
             
            ])
             ->bulkActions([
                BulkAction::make('selected')
             ])

    }



}

How do I make the value entered in otpInput select the bulkaction checkbox?

My application: I have a field where I insert the code value, when the value is inserted in the otpInput it selects it in my table through the bulkactions checkbox.
Was this page helpful?