# 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:** 9

<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

        });

    }

}

```

---

_[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)._
