# Conditional Styling / Display In a List

**URL:** <https://community.weweb.io/t/conditional-styling-display-in-a-list/4245>\
**Category:** Ask us anything\
**Created:** [September 7, 2023, 2:26am UTC](https://community.weweb.io/t/conditional-styling-display-in-a-list/4245 "2023-09-07T02:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark/32/4163_2.png) [@mark](https://community.weweb.io/u/mark)\
**Post date:** [September 7, 2023, 2:26am UTC](https://community.weweb.io/t/conditional-styling-display-in-a-list/4245/1 "2023-09-07T02:26:13Z")

</div>

Hi, when using a collection list, I have a delete icon. When It’s pressed I have a variable change it’s color and show text to confirm.

The only problem is when binding to the variable, the element in every collection item changes, instead of just the elements in that row. How can I use a formula to make sure its only elements in that items row that change?

---

<div class="post-metadata">

**Author:** ![Himanshu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/himanshu/32/16305_2.png) [@Himanshu](https://community.weweb.io/u/Himanshu)\
**Post date:** [September 7, 2023, 5:41am UTC](https://community.weweb.io/t/conditional-styling-display-in-a-list/4245/2 "2023-09-07T05:41:57Z")

</div>

What’s the formula you’re using? For me this formula is working and only changing the color of the selected row.

 ![Screenshot 2023-09-07 at 11.11.17 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f29a457f98ce6ba5a10685e491e7873c7f94a450.png)
