New topic Closed topic
avatar image
1
UI_Builder dropdown using unique values in collection
By Created , last editted

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)?

Answers
Sort by:

This topic is closed.