F
Filament2y 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
Pieter2y ago
in a custom form you would be able to fill the form with data by using the $this->form->fill(['repeater' => $yourData])
qcol
qcolOP2y ago
OK, thank You. I will try.

Did you find this page helpful?