lost a fight with a steamroller
lost a fight with a steamroller
FFilament
Created by lost a fight with a steamroller on 3/3/2024 in #❓┊help
Auto-populating a repeater based on another field
I have a repeater that needs to be populated based on another field. For example in a Select I might have three different options and different options may then require the repeater to have 1, 3 or 5 items. Currently I'm using $set() and setting the data manually but it seems kind of bad practice and I suspect their might be a better method to achieve this behaviour. I cannot use defaultItems() as the dependent field is expected to update reactively, and as far as I'm aware defaultItems is only called once, on the initial form load. Any help would be appreciated, thanks!
2 replies