5 Replies
defaults are applied on the create page, not edit page.
this is from a form in a modal window action
is it a simple resource? or a relation manager?
is it the Edit modal or Create modal??
BulkAction::make('send_mail')
->label('Send mail')
->color('primary')
->icon('heroicon-o-mail')
->action(function (Collection $records, array $data): void {
self::actionSendEmails($data);
})
->steps(self::wizardSendEmails()),
public static function wizardSendEmails()
{
return [
Forms\Components\Wizard\Step::make('Receivers')
->schema([
This is a form for setting up an action in a modal window for records from a table
on the action try
->mountUsing(fn ($form) => $form->fill())