# Is it possible to strikethrough the title of a collection?

**URL:** <https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131>\
**Category:** Ask for Help\
**Created:** [November 22, 2024, 12:06pm UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131 "2024-11-22T12:06:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![izumiinoue](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/izumiinoue/32/79768_2.png) [@izumiinoue](https://community.glideapps.com/u/izumiinoue)\
**Post date:** [November 22, 2024, 12:06pm UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131/1 "2024-11-22T12:06:10Z")

</div>

I’m building a to-do list and was wondering if it’s possible to strikethrough the title section of a collection (list) when the task has been completed?

Most of the older posts here suggest that it’s only possible to display strikethrough in a rich text component but I just want to try my luck and see if anyone has managed to do this.

 ![Screenshot 2024-11-22 at 7.59.21 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c8a1b4af9219421d753deef75f8eb439b8084ab2.jpeg)

---

<div class="post-metadata">

**Author:** ![micheal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/micheal/32/80181_2.png) [@micheal](https://community.glideapps.com/u/micheal)\
**Post date:** [November 22, 2024, 12:42pm UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131/2 "2024-11-22T12:42:55Z")

</div>

You can use the AI component 😉

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 22, 2024, 12:58pm UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131/3 "2024-11-22T12:58:00Z")

</div>

Try this in a javascript column.

```auto
function strikethrough(text) {
    return text
        .split("")
        .map(char => char + "\u0336") // Add a combining long stroke to each character
        .join("");
}

return strikethrough(p1);

```

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 23, 2024, 12:47am UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131/4 "2024-11-23T00:47:26Z")

</div>

```auto
function strikethrough(text, taskCompleted) {
    if (taskCompleted) {
        return text
            .split("")
            .map(char => char + "\u0336") // Add a combining long stroke to each character
            .join("");
    }
    return text; // Return the original text if the boolean is false
}

return strikethrough(p1, p2);

```

Assuming you have a boolean as the “complete” value for your task, you can do it like this.

With p1 being your text, p2 being the boolean.

---

<div class="post-metadata">

**Author:** ![micheal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/micheal/32/80181_2.png) [@micheal](https://community.glideapps.com/u/micheal)\
**Post date:** [November 26, 2024, 9:05pm UTC](https://community.glideapps.com/t/is-it-possible-to-strikethrough-the-title-of-a-collection/78131/5 "2024-11-26T21:05:41Z")

</div>

woahh… nicee works. I first tried a js code but that didn’t work… haha.
