# Change the background of an inline list item (card/tile) based on a selection

**URL:** <https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302>\
**Category:** Ask for Help\
**Created:** [May 2, 2021, 12:34pm UTC](https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302 "2021-05-02T12:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Turrell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_turrell/32/26605_2.png) [@Mark\_Turrell](https://community.glideapps.com/u/Mark_Turrell)\
**Post date:** [May 2, 2021, 12:34pm UTC](https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302/1 "2021-05-02T12:34:24Z")

</div>

Is there a way of changing the background color (or having some kind of checkmark) if a user is selecting from an inline list?

use case:

- the user needs to choose their service to continue

- it would be nice for the selected service to change color / checkmark so they know what has been selected

- my workaround for testing is to present the selection afterward. But it would be nice to have something more fun that takes less space 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 2, 2021, 12:37pm UTC](https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302/2 "2021-05-02T12:37:10Z")

</div>

Could always pop in a user specific column that keeps track of timestamp. The one with the latest time stamp (determined via a Rollup) is the one that has the image/icon, else blank. You’d set the timestamp as part of a custom action when clicking on the inline list item.

---

<div class="post-metadata">

**Author:** ![Mark\_Turrell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_turrell/32/26605_2.png) [@Mark\_Turrell](https://community.glideapps.com/u/Mark_Turrell)\
**Post date:** [May 2, 2021, 12:58pm UTC](https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302/3 "2021-05-02T12:58:36Z")

</div>

Clever 🌟

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 2, 2021, 1:34pm UTC](https://community.glideapps.com/t/change-the-background-of-an-inline-list-item-card-tile-based-on-a-selection/26302/4 "2021-05-02T13:34:25Z")

</div>

The way I do it:

- user specific Boolean to use as a toggle
- template column that includes the item and and whatever icon is used to indicate it’s selected
- if-then-else column to determine what to use as the item title, based on the state of the Boolean
- action on the list item toggles the state of the Boolean

Works fine for me, but that said, Bob’s method looks rather neat also 👍
