Can someone advise how to modify code to exclude duplicated values. The issue is when using the created dropdown it shows all the values of the database. However, I have the ones which repeat and I want them to be hidden.
How can I modify the code to remove duplicated values?