Hi,
I need help with a dropdown connected to a dataset, I don’t want the duplicates to show. I know ways to hide the duplicates (i.e. this code https://www.wix.com/velo/forum/tips-tutorials-examples/remove-duplicates-from-connected-dropdown-options ) but I have a problem… My dataset is filtered by a second dataset.
To explain better, I have a product page which is connected to a Product dataset. On each product page I want a filtering function where customers can use dropdowns to filter options like “Product size” and then the results will show the exact article number based on their choices (I use a repeater for this). I want to do this because every product is available in a lot of different sizes, colours etc. I only want to show the results relevant to the product they have already chosen, the product page they are at. When I connect a dropdown to a column in my second dataset, it only shows the relevant options based on the first dataset, exactly as I want. BUT duplicates show. If I use the code to remove duplicates as the link above, it will show all options in that column in the collection. So if I for example have one product in my first collection named Sara and one named Anna, and Sara is available in sizes 20cm and 30cm, and Anna is available in 20cm and 50cm. If I am on Sara’s product page, I only want the options 20cm and 30cm to show in the dropdown.
Is there any way to do this? Maybe something to add to the code from the link, to hide options with no hits?
I really need help, thanks in advance!