Move Modal's Create Action to Wizard Submit Action
I have a resource that uses the Modal to create, the resource's form uses a Wizard and I want to move the
Create
Action of the Modal inside the Wizard as the Submit
Action for the last step of the Wizard. How do I do this?Solution:Jump to solution
ahh, sorry.. You should add
steps()
in the createAction
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#using-a-wizard...6 Replies
Thank you for this, but this will force me to use the CreateRecord page instead of the Modal, right?
I have the disabled the
create
page on the getPages
function on the resource, so the user can create the record on the modalWas trying to see if I can use this https://filamentphp.com/docs/3.x/forms/layout/wizard#rendering-a-submit-button-on-the-last-step
Solution
ahh, sorry.. You should add
steps()
in the createAction
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#using-a-wizardok, this works well, thank you very much, appreciate the help
Hello, care to explain how did you manage to disbale the default create new record button ? i'm trying to achieve the same result, as clicking on the default create new record button to show up a modal