truncate field

Linda Rickert May 14, 2018

How do I truncate form field output (or display)?

I am using TableView with several fields.  One field is a lengthy description making it wrap  creating significant row height.  Is there a way to display limited characters (e.g. 30)? If so, can the remaining detail be viewed when "hovering" over the text?

2 answers

0 votes
laurent December 2, 2020

You can use truncWithExpand(0) function. When you use this function on text field or textarea field you loss possibility to edit text inline.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2020

Yes, that is because ConfiForms recognizes this as an expression and we only support fields (not expressions) to be edited inline (same for dialog modes - expressions containing fields are not presented to be edited, only fields).

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2018

You can use trunc/trim virtual functions to "shape" the values as you want - ConfiForms virtual functions

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events