# Adding word count to rich text field

**URL:** <https://community.fliplet.com/t/adding-word-count-to-rich-text-field/566>\
**Category:** Get Help\
**Tags:** form\
**Created:** [September 18, 2023, 3:43pm UTC](https://community.fliplet.com/t/adding-word-count-to-rich-text-field/566 "2023-09-18T15:43:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgustafsson](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jgustafsson](https://community.fliplet.com/u/jgustafsson)\
**Post date:** [September 18, 2023, 3:43pm UTC](https://community.fliplet.com/t/adding-word-count-to-rich-text-field/566/1 "2023-09-18T15:43:09Z")

</div>

Is it possible to add a word count to the rich text field in the form component?

---

<div class="post-metadata">

**Author:** ![Deb](https://dub1.discourse-cdn.com/flex017/user_avatar/community.fliplet.com/deb/32/159_2.png) [@Deb](https://community.fliplet.com/u/Deb)\
**Post date:** [September 18, 2023, 3:47pm UTC](https://community.fliplet.com/t/adding-word-count-to-rich-text-field/566/2 "2023-09-18T15:47:39Z")

</div>

Hi Jo,

Yes, it is possible. Once you have added the rich text field to your form you need to add a code snippet under the developer options \> Screen JS.

Code snippet

```auto
Fliplet.Hooks.on('beforeRichFieldInitialize', function (data) {
 data.config.plugins = data.config.plugins + ' wordcount'
 data.config.statusbar = true;
});

```

You should have a count appear on the bottom left-hand side as you type in the rich text field.

Thats all!

Hope this helps,  
Deb
