Aug 12, 2024
0
Level 1
submit button inside form modal is invisible
hi im new to filament , but it's pretty straight forward i have a inline action which opens a modal ... for some reason the submit button inside modal is invisible i can only see the outline shadow ... if i click on it it works

i've tried to play around with button method of the action , but it would effect the inline table link not the modal form button
here is simplified version of my code
return $table
->columns([
Tables\Columns\TextColumn::make('response.status' )->label('status')
->default('pending')
->color(fn(Charge $c)=> !$c->response ? 'warning' : ( $c->response->status == 'completed' ? 'success' : 'danger'))
->icon(fn(Charge $c)=> $c->response ? 'heroicon-o-check-circle' : 'heroicon-o-pause-circle')
->searchable()
->sortable(),
])
->filters([
//
])
->actions([
Action::make('response')
->label('response')
->icon('heroicon-s-paper-airplane')
->color('secondary')
->form([
Forms\Components\Select::make('status')->options([
'accept' => 'Accept',
'decline' => 'Decline',
])->required(),
])
->action(function ( Action $action , Charge $charge) {
if($action->getFormData()['status'] == 'accept')
{
//do stuff
}
else if($action->getFormData()['status'] == 'decline')
{
// do stuff
}
})
->visible(fn ($record) => !$record->response),
]);
Please or to participate in this conversation.