How to dynamically set defaults for Repeater fields?

Hi, I want to dynamically set the defaults of some Repeater fields, based on a "global" value from a different Form field outside of the Repeater. For example: - "global" Select Field for a color -> red selected - Repeater has a Select Field color too, that should have the default red (but can be changed independently, so not the same field ID) I can do that for the first visible Repeater Item using afterStateUpdated(), but I don't know how to do that for every newly created Item that is not available on pageload.
1 Reply
toeknee
toeknee6d ago
Just do ->default() on the inputm and set it to $get('../color') ?

Did you find this page helpful?