Adding word count to rich text field

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

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

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