Gravatar for gdubey@deloitte.com

Question by govinddubey, May 6, 2016 3:56 AM

is there any way to restrict character limits to 100 characters of long text area field of salesforce and then give preview option to see full data using coveo while displaying the result in coveo full search page

Hi, i have a requirement to display only 100 characters of long text area field and if we have more than 100 characters then we can give preview option to see full data. is there any way to restrict character limits to 100 characters of long text area field of salesforce and then give preview option to see full data using coveo while displaying the result in coveo full search page. I am using cloud coveo org.

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, May 6, 2016 4:27 AM

Right now we don't have an OOTB component that does this (clipping and then allowing the user to expand).

If you are using Underscore templates you can implement custom JS logic in the template to obtain this results. Another option would be to register a custom "template helper" that you could then use with the stock FieldValue component. This is slightly more advanced though, but there is some info about how to do this here.

Ask a question