How to add two Create Form Actions
I have a resource and inside create page I am defining create form action in header actions. But the action does not work for some reason, however the default form action works as expected.
following action does not work:
Am i missing something or doing something wrong here?
4 Replies
Maybe they both have the same name? 'create"
what the function
getCreateFormAction
will return?ah let me try changing the name. good point.
what the function getCreateFormAction will return?It was using the action from Filament: I have changed the Create page to following but does not work: I tried this and it works. Seems like we cant use ->submit('create') another place?
are you adding create btn in a create page?
submit('create'),
I think
create
is the name of the livewire action so you have to pass your function nameYes, i need the create action (which saves/submits the form) in a real large form. So for the easiness i need it in both header and footer
Understood. I wish i could use the same action.