I have a repeater field that has 2 select sub-fields and I want to dynamically populate both. The second sub-field choices change depending on what is selected in first sub-field – second select choices could be different for each row.
So far I got dynamic values initialized for both selects, passed localization data used to change second select via JS.
When I save post, values are saved correctly but the select fields all reset to initial choices.
Before save:
Row1: A – 1, (2), 3
Row2: A – 1, 2, (3)
Row3: B – a, b, (c)
After save:
Row1: A – 1, (2), 3
Row2: A – 1, 2, (3)
Row3: A – (1), 2, 3
By now I presume you just can’t modify data of fields in individual rows, but please tell me I missed something 🙂