Table within Create Form.
May I ask what the best approach would be to add a table with a form? The table should also act as a form field, as I plan to save its data in a pivot table.

8 Replies
Blade in the form, with a widget table.
You cannot use filaments table in a form because the table contains forms and they cannot be nested.m. So you need to roll your own solution
I thought I had already done this, but maybe it is something slightly different.
Anyway, on re-reading the OP, I think she really wants repeater field, rather than a table.
Yeah for the usecase I would use #awcodes-table-repeater
I need a table that acts like a form, because each row has a checkbox, and the checkbox values will be saved to a pivot table. It also needs to support pagination and sorting.
Will a custom field work? My issue is that I need to manually implement pagination and sorting.
Yes but not for pagination. Sounds like if you want that you need a table select field maybe... I have seen some people doing them
What do you mean, sir? Do you have any reference? Idea will do.
I can't find one to hand, but I've seen them posted essentially it's a table in a model which allows you to select a record to relate in which is essentially what you ware doing.