How modify create button label
I would like to rename the 'Create' button to 'Submit'. How can I achieve that, sir?
12 Replies
public static function createButtonLabel()
{
return 'YourButtonTextHere';
}
this function didnot work
->label('Create')
on the button it'sself within the list page?
sir in resources file create button
it show Method Filament\Forms\Form::label does not exist.
this error
You haven't applied it to the Action. You put it on the form...
the action likely sits in the listpage class
Sir, I have not created any action buttons. Filament provides default buttons such as 'Create,' 'Create and Create Another,' and 'Cancel' on the create page. I would like to rename the 'Create' button to 'Save.'
So this is within the page iteself, you can do it globally with a language override?
Sir, I just want to modify that on a specific page, not on every page.
Just apply it to the one button on the specific page then
Solution
You can override getCreateFormAction on the Create page class
Here's the default one:
thank you,everyoneđź‘Ť