F
Filamentβ€’7mo 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
Wannesβ€’7mo ago
these buttons specifically
No description
Figg
Figgβ€’7mo 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'), ]; }