261
Views
2
Comments
Solved
Readmore and readLess

Hi,

I want the text to readmore to expand the text and readless to short the text how can i do without Javascript  ?

regard,

prasath

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi prasath ,

Yes you can do it by IF widget.

in true branch show minimum content and else branch show full content and on button click you can change value of Boolean attribute. so condition can be chnaged.

https://rahul-sahu.outsystemscloud.com/OSTest/ReadMore?_ts=637795026018556499


Regards

Rahul

OSTest.oml
2024-01-18 12-42-28
Bogdan Boglea

Hey,


You could create a webblock where you encapsulate the text/expression in an IF condition. In case the text length is longer than a specified value you could display just a substring followed by (more...) or something similar. Otherwise, you just display your full text. When clicking (more...) you could control the IF condition via a variable so the full text is displayed.


Regards,
Bogdan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.