F
Filamentβ€’13mo ago
Wannes

Change button label on create page

Hi, Is it possible to change the label of the button on the create page in the form? Without using Blade components. The "Create" and "Create & Add Another" labels. Thx in advance! πŸ™‚
2 Replies
Wannes
WannesOPβ€’13mo ago
these buttons specifically
No description
figg1333
figg1333β€’13mo ago
in the models resource create page (CreateModelName.php), you can overwrite the getFormActions, and add the label to the returned actions: protected function getFormActions(): array { return [ $this->getCreateFormAction()->label('customCreateButton'), ...(static::canCreateAnother() ? [$this->getCreateAnotherFormAction()->label('customCreateAnotherButton')] : []), $this->getCancelFormAction()->label('customCancelButton'), ]; }

Did you find this page helpful?