Truncate Description in a View - Text Mode? | Community
Skip to main content
Level 5
February 23, 2021
Solved

Truncate Description in a View - Text Mode?

  • February 23, 2021
  • 1 reply
  • 1748 views

Is it possible to use text mode to truncate the description in a view to make the viewing and scrolling experience better? Does anyone have the text mode they could share? Also, if I were to apply this text mode, would I lose the ability to in-line edit the description field?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by imgrund

Try...

displayname=Description Summary

textmode=true

usewidths=true

valueexpression=IF(LEN({description})>140,CONCAT(SUBSTR({description},0,139)),{description})

valueformat=HTML

width=250

1 reply

imgrund
Adobe Employee
Adobe Employee
February 23, 2021

Hi Sydney,

@NRYN R - inactive‚ on his lovely WF Pro site has the code you need! :) But yes, you would lose the ability to inline edit because you are not looking at the field itself.

displayname=Description Summary

textmode=true

usewidths=true

valueexpression=IF(LEN({description})>140, CONCAT(SUBSTR({description},0,139),"... (open issue for more)"), {description})

valueformat=HTML

width=250

For all of his great examples: https://wf-pro.com/home/training/text-mode-examples/

Level 5
February 23, 2021

Thank you Anthony! One follow up, how do I get rid of the (open issue for more) ? I tried but I broke it! 😖

and thank you for the additional resource! I will poke around in there!

imgrund
Adobe Employee
imgrundAdobe EmployeeAccepted solution
Adobe Employee
February 23, 2021

Try...

displayname=Description Summary

textmode=true

usewidths=true

valueexpression=IF(LEN({description})>140,CONCAT(SUBSTR({description},0,139)),{description})

valueformat=HTML

width=250