Is it possible to display a resource create form within a table header Bulk action.
I need to associate multiple resources with another new resource.
For this I have a bulk action in a table that opens up a modal and I can add a form in that action. But I don't know if there is a way to instead of adding the form on the action I can add an already existing create resource form.
I could load the resource form with CreatePage::form(). But that doesn't seem to keep the original resource on the form and instead uses the resource from the table.
For this I have a bulk action in a table that opens up a modal and I can add a form in that action. But I don't know if there is a way to instead of adding the form on the action I can add an already existing create resource form.
I could load the resource form with CreatePage::form(). But that doesn't seem to keep the original resource on the form and instead uses the resource from the table.
Solution
Move your document form into the model. Make a static function called getForm() and return array.
In your document resources call the getForm()
In your document resources call the getForm()