Filter repeater based on dropdown

Hi All,

I am building a training course page with a repeater. I want to help the website visitor to quickly find courses relevant to their needs. Therefore I have added a dropdown list and named it “CourseObjectives”. The dropdown is basically listing various goals for example one value is “compliance” by clicking of which only the compliance labeled courses will show. in the CMS table, I have created the field “CourseObjectives” as well, the field type is Tags so that I can assign multiple objectives to a course item.

Now I want to link the repeater with the dropdown filter and make it work.
I don’t find any solution which does not require any coding, and I honestly do not understand the related topic discussions as there is too much coding jargon in it for me.

So I wanted to ask if you could put here a code for me that I could use?
My collection ID = Courses
My repeater field ID = courseObjectives
My dropdown ID = CourseObjectives

I am hoping that I wont need to add all the dropdown values in the code, but if I do, please simply refer to Value 1 to Value 4. (there are 4 Objective tags).

Apologies for the repeat topic, and 'iam really greateful for a copy paste advise here.

thank you!

You do not need code.

Add your repeater and link it to a dataset.
Link the repeaters elements properties to the dataset connections.

Add your drop down

Link it to the same dataset.

Set it to Filter Content.

And then set the Filter Content By to your Tags field.

Leave the Condition to includes

That’s it.

1 Like

Love it, Mark! Thank you :slight_smile:

1 Like