
UI_Builder dropdown using unique values in collection
Hi everyone,
I have a dropdown in my frontend (UI Builder) which I populate with values from a collection. This works but I want to make it so that I only get unique values from the collection.
For example, one dropdown is based on the property 'year' from a collection. This collection has five times 'Year=2018' and two times 'Year=2017'. In my dropdown I want to see '2018' 1 time and '2017' 1 time (instead of five '2018' and two '2017')
Is there a way to fill the dropdown with only unique values (ignore the value of it's already in a list)?
Hi everyone,
I have a dropdown in my frontend (UI Builder) which I populate with values from a collection. This works but I want to make it so that I only get unique values from the collection.
For example, one dropdown is based on the property 'year' from a collection. This collection has five times 'Year=2018' and two times 'Year=2017'. In my dropdown I want to see '2018' 1 time and '2017' 1 time (instead of five '2018' and two '2017')
Is there a way to fill the dropdown with only unique values (ignore the value of it's already in a list)?
Login to reply