Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 8

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‚

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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 🙂

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

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 🙂

Avatar

Administrator

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

Avatar

Level 8

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!

Avatar

Level 10

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