Thanks Hugh. I've got a few dozen hours into farting around with this myself since I first discovered the problem and started this support thread.
There isn't much to the picklist element code - but that still doesn't mean I understand everything that's being done.
I did discover that, by adding the 'fabrikinput' class, the UL and LI tags the RepeatCounter index in any added repeat group will be incremented correctly. But then the LI tags don't use the special id created by the picklist element that includes the '_value_thevalue' as part of the id.
Also, in the actual hidden input element that holds the 'toList' values (i.e. the values that get stored to the database table), it still clones the values from the first repeat group to the added repeat group rather than resetting the fromList and toList to the default (all items moved to the fromList). BTW, that hidden input tag was the only part of the picklist element that was incrementing the id with the current/correct RepeatCounter.
But I'm using some javascript in the form_xx.js file to change other elements in the same repeat group form in real-time with the assistance of the userAjax.js feature of fabrik. (Cool - you discover something new every day). In some instances I don't want the picklist element shown at all. So I need the IDs of that picklist element to represent the correct repeat group.
I'm not sure if the issues are with the element or that the fabrik core code is not recognizing the way the picklist elements creates those IDs. I don't think you'd want to change the core fabrik form or element model code just because this one element isn't playing by the expected rules. And I see no point in writing my own javascript in the form_xx.js file to handle it. So I was trying to play the hero and just change the picklist php and js code for you. But I'm having problems figuring that all out. How about storing that 'value_thevalue' part of the UL/LI id in a different attribute other than the ID itself? (This is what makes the UL and LI id's so different from other Fabrik elements.) Like maybe the title attribute - or as part of an additional class name like 'value_thevalue'? This way code can be changed in the picklist.php and picklist.js files (to find the value of the LI items in another way) without having to change anything else in fabrik.
As usual, just my 2 cents - and probably all it's worth.
Thanks again, Hugh - and please keep me abreast of any progress. This is the final piece of the puzzle in a 3-group tabbed form that is the most complex part of what seems to be a neverending project.