I’m trying to change the button title on the modal that opens up. Modalsubmitactionlabel only works for one of the buttons but the “create & create another” button doesn’t seem to have any methods for it?
Here’s my code:
<?php
namespace AppFilamentResourcesCarResourcePages;
use AppFilamentResourcesCarResource;
use FilamentActions;
use FilamentResourcesPagesManageRecords;
class ManageCars extends ManageRecords
{
protected static string $resource = CarResource::class;
protected function getHeaderActions(): array
{
return [
ActionsCreateAction::make()
->mutateFormDataUsing(function(array $data) {
$data['car_id'] = filament()->auth()->user()->car_id;
return $data;
}),
];
}
}
I’ve tried
->modalSubmitActionLabel(‘Add’)
->modalButtonCreateAnother(‘Add & Add Another’)
But no luck.