Is repeater::createItem still a thing in V3 ?

repeater::createItem event doesn't seem to trigger in V3, do you have any issue with it ? thanks
3 Replies
Patrick Boivin
Patrick Boivin16mo ago
lamberttraccard
lamberttraccardOP16mo ago
thank you very much, didn't find anything about it in the doc 😢
Oliverdam
Oliverdam15mo ago
In case you didn't find a solution I had the same problem and got help in another thread. If you are able to have the code on the repeater itself you can do something like this:
Repeater::make('thing')
->addAction(fn (Action $action) => $action->after(function () {
// Do what you want when an item is added.
}));
Repeater::make('thing')
->addAction(fn (Action $action) => $action->after(function () {
// Do what you want when an item is added.
}));
This is the thread in case it helps https://discord.com/channels/883083792112300104/1148582353241911446
Want results from more Discord servers?
Add your server