'Read More' text mode for long Description or Note text in views | Community
Skip to main content
SamanthaIsin
Level 7
April 29, 2021
Solved

'Read More' text mode for long Description or Note text in views

  • April 29, 2021
  • 3 replies
  • 969 views

There was a gem of a community post I seem to remember seeing sometime again about how to put a 'read more' or 'show more' option in long text colums. For example, if a project description is longer than 180 characters it cuts off at 180 and says 'read more.'

Did I dream this or does someone else remember seeing it/know how to do it?

@Anthony Imgrund‚ @Kyna Baker - inactive‚

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

Hi - here is the code below. I'd recommend you save https://wf-pro.com/home/training/text-mode-examples/ into your favorites. @NRYN R - inactive‚ has done a great job putting all these examples together (which is where I got this code from)

Description:

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

Last Note:

displayname=Last Note

querysort=lastNote:entryDate

textmode=true

valueexpression=IF(LEN({lastNote}.{noteText})>140, CONCAT(SUBSTR({lastNote}.{noteText},0,139),"...(open for more) -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate}), IF(LEN({lastNote}.{noteText})>0, CONCAT({lastNote}.{noteText}," -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate})))

valueformat=HTML

Hope that helps :)

3 replies

imgrund
Adobe Employee
imgrundAdobe EmployeeAccepted solution
Adobe Employee
April 30, 2021

Hi - here is the code below. I'd recommend you save https://wf-pro.com/home/training/text-mode-examples/ into your favorites. @NRYN R - inactive‚ has done a great job putting all these examples together (which is where I got this code from)

Description:

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

Last Note:

displayname=Last Note

querysort=lastNote:entryDate

textmode=true

valueexpression=IF(LEN({lastNote}.{noteText})>140, CONCAT(SUBSTR({lastNote}.{noteText},0,139),"...(open for more) -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate}), IF(LEN({lastNote}.{noteText})>0, CONCAT({lastNote}.{noteText}," -- ", {lastNote}.{owner}.{name}," on ", {lastNote}.{entryDate})))

valueformat=HTML

Hope that helps :)

kynabaker16
Adobe Employee
Adobe Employee
April 30, 2021

Anthony beat me too it, I was also going to send you to Narayan's site! :)

SamanthaIsin
Level 7
April 30, 2021

Holy smokes. How I didn't know about this website earlier I don't know. @NRYN R - inactive‚ THIS is a beautiful place!!! Like candyland!! Thank you all so much!

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
April 30, 2021

Hear hear, Samantha!

You've inspired me to set up this WF-Pro.com THANK YOU Guestbook, which I invite you to "second", to share some love back Narayan's way.

Regards,

Doug

SamanthaIsin
Level 7
April 30, 2021

DONE!