Form Builder: Modal-Form Action
Is it possible to create a form inside a modal which get triggered from a button / action (like in the table builder / admin panel) with the form builder package only?
Background:
I would like to use the Form Builder in a existing laravel (non filament) project and benefit from the forms and modals.
Thank you!
22 Replies
in v3 this is possible
Hi @prodex, I have a project with form builder and it is possible. Take a look:
You can use custom views obviously, and if an action within a form you can use drop-in-action
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Can you share the code please?
send code.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
"submit" not 'submit'
where is your <form> tag?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
remove attributes, one of them will probably be problematic
Can you share the whole code?
In this case, you can use <x-filament::button> I think
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
both should work, i think theres just a syntax error somewhere
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you shoudldnt need a custom view like this
to make a basic resource
I agree
But if you want to send that data that way, you need to set a <form wire:submit.prevent='create'>
I think
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
just copy the code from /vendor create-record.blade.php and modify it?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View