How to truncate the description and disable the 'showMore' icon on an Answers card

Hi,

I’d like to update the description on my card to truncate the text to 250 characters with an ellipsis. As the description is quite long, I want to disable the ability to “show more/show less” and drive users to click on the title or CTA to see the information on the landing page.

Is there a way to leverage the showMoreLimit and hide the icon? Commenting out the showMore and showLess still leaves the icon visible.

Hi Lisa,

You can use the Formatter.truncate(field, length) function to do so - ex. try Formatter.truncate(profile.description, 250) in your data mappings.

As a reminder, you can see all of the available formatters in your Formatters.js file in the theme.