Coding Repeater

I am looking to use a repeater to ask the user a question, id like certain code to run depending on what repeater container is pressed. I cant Differentiate any of the repeater ids in the property menu because it changes all the ids in the container. I have 3 selections within a repeater, and I would like each one to run a slightly different line of code.

Is there a way to code in what happens after a specific repeater item is selected? I tried naming each box individually but it changes all the boxes names.

I appreciate any and all help!

Inside the onclick function for each container, put this:

let $item = $w.at(event.context);
let currentItem = $item('#DATASETNAME').getCurrentItem();
if (currentItem.title === "THE_TITLE_OF_THE_SPECIFIC_ITEM") {
    //What you want to happen
}

It wont let me use the “.getCurrentItem()” function for some reason?

@joeycahill24

“.getCurrentItem()” → works only on → “dynamicDataset”