How to dynamically fill repeater items in create form
Hi. I need to fill several repeater items dynamically.
At the moment, the "empty" lines are being created as expected (I mean 3 or 4 items), but the one only field called "description" is not filled;
My code includes a TableRepeater::make ('actions') and inside there is one only field in the schema, called description.
My code works afterStateUpdated and goes like this:
And below is the repeater part:
Any ideas of how I can fill the field DESCRIPTION inside the repeater called ACTIONS ????
Tks.
Solution:Jump to solution
the repeater is an array of arrays.
```php
[
['description' => 'blah'],
['description' => 'blah2'],...
2 Replies
Solution
the repeater is an array of arrays.
It works now. Thank you very much for the info "array of arrays". That makes it absolutely clear.
Tks.