Question
futureproofAI
IN
Last activity: 8 Oct 2020 13:06 EDT
Truncate text to 17 characters followed by 3 dots and hover need to display the complete text
Hi,
I have a requirement to truncate the long text to 17 characters followed by 3 dots and on hover need to display the complete text. can anyone suggest me the approach?
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi Ramakrishna,
Your requirement can be achieved by using "pxTextAbridge" control where you can give max length as a parameter(Max length after which the text will be truncated).
Hi Ramakrishna,
Your requirement can be achieved by using "pxTextAbridge" control where you can give max length as a parameter(Max length after which the text will be truncated).
Thanks
Pegasystems Inc.
IN
Hi Ramakrishna,
Your requirement can be achieved by custom js, you can try below code to truncate the text as required.
Pegasystems Inc.
US
Can you check below post?
https://collaborate.pega.com/question/truncating-contents-field-20-characters-followed-3-dots
futureproofAI
IN
Hi SusanLiu,
This is not worked for me.
Accepted Solution
Pegasystems Inc.
IN
Hi Ramakrishna,
Your requirement can be achieved by using "pxTextAbridge" control where you can give max length as a parameter(Max length after which the text will be truncated).
Hi Ramakrishna,
Your requirement can be achieved by using "pxTextAbridge" control where you can give max length as a parameter(Max length after which the text will be truncated).
Thanks
-
vamshi Sriram Satheesh Kumar K Srikanth Yangali Srimanik Kamarapu Khushbu kumari
Tecnologias Plexus S.L
ES
This was very helpful, thank you!
The only thing to note is that the three dots (...) are counted as characters so if you want, for example to limit your text to 36 chars you have to set the max to 39.
TATA CONSULTANCY SERVICES
US
It works for small text, if we would want to display truncated text like here, and on hover (action tab) to have show smart info (a section), its not happening, any other alternative in Pega 8.3