Select field in headerActions of $table is missing values

Hello, I'm building a header actions with Select form with an eloquent relationship. When i trigger the action the array $data is empty despite what values I pick in the select field. Is this a known bug or limitation?
4 Replies
DrByte
DrByte15mo ago
Can you share the code for your action and form?
mrdarknezz
mrdarknezzOP15mo ago
$table ->headerActions([ Action::make('generate') ->label('Generera') ->form([ Select::make('categoryIds') ->relationship('categories', 'name') ->multiple() ->createOptionForm([ Forms\Components\TextInput::make('name'), ]), ])->action( function (array $data) { dd($data); } ) ])
mrdarknezz
mrdarknezzOP15mo ago
No description
DrByte
DrByte15mo ago
I suppose inside your action() closure you could probably retrieve $this->getFormData()
Want results from more Discord servers?
Add your server