# 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:** 1\
**Showing post:** 8

<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 …

---

_[View the full topic](https://community.fibery.io/t/in-board-view-use-description-field-toggle-to-show-if-entity-has-a-description-like-trello/2333)._
