# In board view use Description field toggle to show if entity has a description (like Trello)

**URL:** <https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333>\
**Category:** Ideas & Features\
**Created:** [December 21, 2021, 4:19pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333 "2021-12-21T16:19:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [December 21, 2021, 4:19pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/1 "2021-12-21T16:19:43Z")

</div>

As someone that’s trying to migrate our Trello use cases to Fibery boards I would like to be able to view if an entity has a description or not, similar to how Trello does it with their cards.

![YlRnEdBnpm](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/58a132895c4b1be877f2feb86fbc9b050105de19.gif)

I imagine this could be enabled using the **Fields** dropdown where if Description is toggled a similar icon is shown on cards where there Description field is not empty.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/d/d23ec332e2621f3630d5603e7e71a4d8c22d68d1.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [December 21, 2021, 8:35pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/3 "2021-12-21T20:35:43Z")

</div>

**NOW FIXED** see post [#7](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/7)

~~How about this for a fugly workaround 🙂~~

```auto
[DELETED]

```

Of course, out of curiosity, I have to ask what you are using to trigger the automation, because it’s not yet possible to trigger on rich-text changes?

---

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [December 21, 2021, 8:58pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/4 "2021-12-21T20:58:26Z")

</div>

I have to give you props, because while that is truly hideous - it _could_ work.

> [@Chr1sG](#):
>
> it’s not yet possible to trigger on rich-text changes

Ok, well that’s an even larger problem. LOL

I’m guessing this somewhere on the roadmap? Because I don’t see an existing feature request for “trigger on rich-text changes” . This is the closest similar thread:

> [@Allow Rules/Formula Involving Rich-Text Fields](https://community.fibery.io/t/rule-formula-involving-rich-text-fields/2108):
>
> Is this possible? #1 (Rule): If a rich-text field is not empty, then a checkbox’s value becomes ‘True’ #2 (Rule): If a rich-text field is not empty, copy the first few words to a text field Use-case: I just want to know if any of the rich-text fields are populated without having to click on the entity

**EDIT:** A workaround for this workaround may be to use On Schedule trigger?

---

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [December 21, 2021, 9:16pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/5 "2021-12-21T21:16:50Z")

</div>

At this point I’m three workarounds deep into getting this to work so I might just give up but I guess I could use this type of Scheduled trigger below for the automation.

The downside is that the “Has Description” flag will be only set one way, that is to say it will only show that a description was added at some point and not update if the description is removed.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/076a4baeb905428026662a3b840d064fe3e280c3.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [January 4, 2022, 2:41pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/6 "2022-01-04T14:41:15Z")

</div>

Quick update:  
It seems like the API does support clearing the value of a single-select using `null`, but problem lies with the `.updateEntity` function.

~~The devs are working out what the fix is, but in the meantime, you could use the following (slightly less fugly) workaround:~~

`[DELETED]`

Fixed now, see below.

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [January 4, 2022, 4:38pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/7 "2022-01-04T16:38:47Z")

</div>

Hello.  
I’ve fixed the issue with script failure on setting null to single-select field via ` fibery.updateEntity` api. It should work ok now.  
Sorry for inconvenience.

---

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [May 2, 2022, 8:50pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/8 "2022-05-02T20:50:38Z")

</div>

Here is the updated code and instructions for this automation + script based workaround to show if a entity / card has a Description:

## Setup

1. Add a single select field named: `Has Description`
2. To this field add a single option with the value: `...`
3. Set the icon of this field to one of the 📝“write” or 📃“paper” emojis
4. Create an automation rule **When** \> On Schedule, every one hour **Then** run script:

```auto
const fibery = context.getService('fibery');
for (const entity of args.currentEntities) {
    const description = await fibery.getDocumentContent(entity.Description.Secret);
    const hasDescription = entity['Has Description'].Name
    if (description && !hasDescription) {
        // set Has Description field if not already set 
        await fibery.updateEntity(entity.type, entity.id, {
            'Has Description': "...",
        });
    } else if (!description && hasDescription) {
        // clear Has Description field if no description
        await fibery.updateEntity(entity.type, entity.id, {
            'Has Description': null,
        });
    }
}

```

## How it works

https://www.loom.com/embed/d851a93c7f2e4c17aaf6662f278a1413

**Note:** When it becomes possible to trigger on rich-text changes, you might be able to do the entire workaround automation without using the script.

**Edit:** If you want an icon to show for fields other than Description, the process is much simpler and can be done without using scripts. See this example here:

> [@\[DONE\] View of images in Board View](https://community.fibery.io/t/view-of-images-in-board-view/689/17):
>
> If you are okay with just having the card show an icon when that entity has images attached/linked then you can setup an automation like this: Add a single select field named: Has Image To this field add a single option with the value: ... or a blank space Set the icon of this field to something like this: framed_picture (picture) or camera (camera) Create an automation rule When \> entity Updated & specific field used for images is changed Then \> Update the field Has Image and set it to …

---

<div class="post-metadata">

**Author:** ![v3j](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@v3j](https://community.fibery.io/u/v3j)\
**Post date:** [May 5, 2022, 9:23am UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/9 "2022-05-05T09:23:30Z")

</div>

Hi Dimitri, thank you for this!

I’m not technical enough to understand scripts but how is yours different from the one in here: [Allow Rules/Formula Involving Rich-Text Fields - #14 by rothnic](https://community.fibery.io/t/allow-rules-formula-involving-rich-text-fields/2108/14)

That one uses a checkbox field “Detecting Description” and the script goes like this:

```auto
// Developer reference is at api.fibery.io/#action-buttons

// Fibery API is used to retrieve and update entities

const fibery = context.getService('fibery');

// affected entities are stored in args.currentEntities;

// to support batch actions they always come in an array

for (const entity of args.currentEntities) {

    // the rich text field is a document, which requires a special id to get access to

    // In this case, the rich text field is "Description", so we request that field be included

    const entityWithExtraFields = await fibery.getEntityById(entity.type, entity.id, ['Description']);

    // as long as we have the rich text field looking valid, let's do something with it

    if (entityWithExtraFields['Description']) {

        // just saving a shorter reference to it

        const dsc = entityWithExtraFields['Description'];

        // get the rich text field contents as markdown (supports md, html, and json)

        const doc = await fibery.getDocumentContent(dsc.secret, 'md');

        // now we can search the rich text for whatever we are looking for

        // In this case, lets just see if the doc is non-null and non-empty, 

        // then update a checkbox

        const docExists = ((doc !== null) && (doc !== ''));

        await fibery.updateEntity(entity.type, entity.id, {

            'Detecting Description': docExists

        });

    }

}

```

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 5, 2022, 9:32am UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/10 "2022-05-05T09:32:47Z")

</div>

I think the other topic is more generic, but yes, @rothnic’s script example is basically achieving a similar thing.  
However, I think his script is updating a checkbox, whereas @Dimitri_S’s is updating a single select.  
The way that these fields are represented on a card is somewhat different.

---

<div class="post-metadata">

**Author:** ![rothnic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rothnic/32/1850_2.png) [@rothnic](https://community.fibery.io/u/rothnic)\
**Post date:** [May 5, 2022, 1:10pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/11 "2022-05-05T13:10:11Z")

</div>

> [@v3j](#):
>
> I’m not technical enough to understand scripts but how is yours different from the one in here: [Allow Rules/Formula Involving Rich-Text Fields - #14 by rothnic](https://community.fibery.io/t/allow-rules-formula-involving-rich-text-fields/2108/14)

One other technical difference is that @Dimitri_S’s script is looking for the existence of the description field, but won’t detect if the description is empty.

`const description = await fibery.getDocumentContent(entity.Description.Secret);`

This is getting the secret, which is like an id for the document, but it doesn’t check the contents of the document.

`const docExists = ((doc !== null) && (doc !== ''));`

This statement performs both checks for the document to exist, but also will detect if the document is empty. You could also perform other checks here in addition to `(doc !== '')`.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 5, 2022, 1:28pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/12 "2022-05-05T13:28:10Z")

</div>

Just to clarify, if you don’t type anything in the description field, both scripts effectively work the same, but if you were to type something and then delete it (so that the description field is blank) the scripts will behave differently, since the doc now exists, but is empty.

Is that correct @rothnic @Dimitri_S ?

---

<div class="post-metadata">

**Author:** ![rothnic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rothnic/32/1850_2.png) [@rothnic](https://community.fibery.io/u/rothnic)\
**Post date:** [May 5, 2022, 1:47pm UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/13 "2022-05-05T13:47:10Z")

</div>

Correct. Yeah, I initially missed that, then after testing I adjusted the script to account for that. It might be an edge case but wanted to clarify since the scripts seemed somewhat different in how they were getting to a similar outcome.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 29, 2025, 11:25am UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/14 "2025-04-29T11:25:20Z")

</div>

Note: it is now possible to show the Description field (or any rich text field) as a field in data views (board, table, list etc.)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 29, 2025, 11:25am UTC](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333/15 "2025-04-29T11:25:23Z")

</div>


