I have a ForEach that is entering a username from a CSV into a search field in the UI. The results return in a html table. There is a checkbox in the returned record which needs to be checked > then a button clicked to save. Nice and easy, however, for some usernames, multiple results return e.g
username entered: smithC
results returned:
SmithC
SmithC1
SmithC2
an example row from the table
How do I get it to check only the checkbox for the username match?