How can I set a press handler for the itemCollection component that checks the prefix checkbox?

Hello

I am hoping to be able to check the prefix checkbox on the item when the user presses it.

Is anyone able to advise on how to do this please/

Thanks.

Hi @mgh,

Welcome to the forum!

You can use the collection's .suffixValueByIndex property.

For the only run when condition on the press handler, you can use {{self.suffixValueByIndex[i]}}:

For a query triggered by the press handler, you can use additionalScope to pass the same value