It shows the entire set of groups (9 groups) instead of only 3 (Group
A, Group B, Group C)
How can I make that it shows only one instead of 3 of each one?
If you have this specific data in your table, then I’m not sure what
your collection_select is meant to represent. Your data are unique at
the row level, so if you had a picker with id and name as value and
label, which one of the rows in your database should represent GroupA?
The one with code 07A? 10B? Those rows would have distinct id values,
naturally. By that logic, what you are seeing in your collection_select
is precisely what I would expect to see.
Now if you only want to populate your picker with the “group name” and
you want it to be a distinct selection, here’s what I use for that: