Currently, I’ve got an href that’s pulling the row name and assigned ID into it, and then I have various other fields within the row, such as colours from linked relationship fields, that are being pulled in to the modal popup (frontend html screenshot attached). It’s essentially a colour picker with the href acting as the link for the relevant popup, both of which use a data-id assigned via a group_id number field within the repeater row on the backend (one field, same number gets applied to each element). The functionality all works fine, but what I want to do is query whether or not there are multiple rows with the same group_id, and if there are then I’d like the contents of those rows to be contained within the same modal popup instead of displaying two links / popups for rows with the same ID.
If it’s possible then I’d appreciate someone pointing me in the right direction. If not, then I’d also appreciate someone letting me know so I’m not searching around for an answer that doesn’t exist.