F
Filament12mo ago
qcol

Repeater with partially predefined values?

I have 3 tables: products: id, name prices: product_id, price_type_id, price price_types: id, name (unique) So the user can add any number of price types. A price of each type should be added for each product. Is it possible, for example, to add a repeater with partially predefined values? This would display a list with all price types (name filled), only the price field would have to be completed? How to solve this?
2 Replies
pieter_wessel
pieter_wessel12mo ago
in a custom form you would be able to fill the form with data by using the $this->form->fill(['repeater' => $yourData])
qcol
qcol12mo ago
OK, thank You. I will try.