F
Filament12mo ago
dyo

Create advanced multiple form

I want to create a from with 2 models.. but the other form, or 'smaller form', is in the middle of the main form, like the picture I've attached, with blue box outline.. the input data in 'smaller form' can be extended to multiple input, like options. can i do this with filament form builder?
Solution:
I want to create a from with 2 models.. but the other form, or 'smaller form', is in the middle of the main form, like the picture I've attached, with blue box outline.. the input data in 'smaller form' can be extended to multiple input, like options. ...
Jump to solution
2 Replies
Dennis Koch
Dennis Koch12mo ago
Why 2 forms? How would you do this with pure HTML? How would a user know that the inputs in the middle are a separate form with a separate submit action? Instead: Make it one form. If the second model is a relationship to the first model you can use Filamnet components. Otherwise use a Lifecycle hook to store the data yourself.
dyo
dyo12mo ago
lifecycle hook seems fit to my case.. thanks, i'll try..