# Different workflows on collection bound items

**URL:** <https://community.weweb.io/t/different-workflows-on-collection-bound-items/6696>\
**Category:** How do I?\
**Created:** [January 30, 2024, 4:45pm UTC](https://community.weweb.io/t/different-workflows-on-collection-bound-items/6696 "2024-01-30T16:45:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [January 30, 2024, 7:06pm UTC](https://community.weweb.io/t/different-workflows-on-collection-bound-items/6696/2 "2024-01-30T19:06:52Z")

</div>

of course you can, you just need to keep track of what is selected in a variable. You can use an object or an array, and handle the value update with a workflow on click. [this example](https://community.weweb.io/t/checkboxes-within-a-collection-list/1379/3) shows how you can do it with an array, it uses checkboxes, but it’s the same logic, on click check if the value is present or not and remove/add the value from the variable. My preferred method is using an object in a way similar to [this example](https://community.weweb.io/t/are-form-variables-not-visible-while-the-form-is-in-a-collection-item/1138/6), it uses forms and inputs but you can get how it works. You need an unique id for every button and on click you set `yourvariable[id]` to `not(yourvariable[id])`, now if `yourvariable[id]` is true the button is selected.  
The important thing is that your condition needs to be bound to something unique that identifies the button

---

_[View the full topic](https://community.weweb.io/t/different-workflows-on-collection-bound-items/6696)._
