Resource as wizard step

Hello everyone, Thank you for so much hard work and great tool, in my application there is a requirement to include related resource inside wizard step, i know about relation manager but it goes below wizard I want to have rated resource crud inside wizard step how can I achieve it?
16 Replies
Dennis Koch
Dennis Koch3mo ago
You can use a repeater.
sagarrabadiya
sagarrabadiyaOP3mo ago
thanks for the suggestion but my form is very large and meed it inside model when creating or updating records my simple use case is as below
sagarrabadiya
sagarrabadiyaOP3mo ago
No description
sagarrabadiya
sagarrabadiyaOP3mo ago
as you can see tabs I have handled with wizard step and inside it's a full resource so If somehow I can use resource directly as wizard step with relationship it will work easily
Dennis Koch
Dennis Koch3mo ago
I think you mean the "table" with "resource". That's currently not possible, because the Wizard is a form component and that doesn't accept tables. You can create a custom page with a view file and use blade components for the wizard and add separate forms and tables for every step.
sagarrabadiya
sagarrabadiyaOP3mo ago
is there any sample available? so I can follow and solve the issue
toeknee
toeknee3mo ago
Not at present, I used spatie media for mine, but tbh for yours you could probably use #awcodes-table-repeater
sagarrabadiya
sagarrabadiyaOP3mo ago
for my usecase media is attached with each record and each record belongs to parent record I was able to build it but somehow file upload creates problem, file field inside modal doesn't work it doesn't save uploaded file when wizard is saved
Malik Tanveer
Malik Tanveer3mo ago
Use a Repeater relation field inside your WizardStep schema. Filament will handle inline CRUD for the related model on form submit, so you get full create/read/update/delete inside the wizard without a separate RelationManager.
sagarrabadiya
sagarrabadiyaOP3mo ago
how can I use modal for my form? fields are a bit long so I need to have form inside modal create and edit managed to get it working except fileupload component is not working inside modal in action callback fileupload form components data is not present
Dennis Koch
Dennis Koch3mo ago
You need to share some more information.
sagarrabadiya
sagarrabadiyaOP3mo ago
I will share minimal repository with code so that you can understand
sagarrabadiya
sagarrabadiyaOP2mo ago
No description
sagarrabadiya
sagarrabadiyaOP2mo ago
how can I merge this 2 tabs? tabs at top are relation manager groups and Edit tab is main form which already has tabs, is there anyway I can embed relation manager as form component so tabs are unified I was hoping v4 might have some feature related to this
LeandroFerreira
LeandroFerreira2mo ago
you mean this ?
WireModel
Refine your apps with TALL Stack examples. Get practical tips and working code built with Tailwind CSS, Alpine.js, Laravel, and Livewire.
sagarrabadiya
sagarrabadiyaOP2mo ago
Yes exactly like this, Thanks so much @LeandroFerreira I will give it a shot @LeandroFerreira thank you it worked like a charm

Did you find this page helpful?