cancel
Showing results for 
Search instead for 
Did you mean: 

In personas 3.0 how do we wrap a text to show in mulitple lines?

mrajesh1
Explorer
0 Kudos
259

I have a text field which has a long text and cutting off after some length. Now I have expanded it into fit into two lines but the text is still apearing in one line and cutting off. Do we have any option in personas 3.0 SP18 to wrap a text field?

View Entire Topic
Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Tamas_Hoznek_0-1733761059078.png

Is this what you mean?

mrajesh1
Explorer
0 Kudos
Thanks Tamas. NO I mean I have an existing field which has a long text coming up in single line. I need to show that in two lines.
Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
Well, there is no way to turn a single-line backend field to a multi-line one by just changing a property in a flavor - but a lot is possible via scripting.
mrajesh1
Explorer
0 Kudos
Do you have any scripting handy for the Wrap?
Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

It depends on what your exact scenario is and what you want to achieve. Is the field display only? If yes, that makes things easier. In this case, you could hide the original field, replace it with a multi-line text control and copy the original field content via an onLoad script into your new field. If the original field is also ready for input, that complicates things, especially if there is any validation tied to the input value. Then, you'd need to take care of taking the input from your multi-line text field, copy it to the standard field and handle eventual error messages as well. I cannot give you one script that handles these different situations.

mrajesh1
Explorer
0 Kudos
Thanks Tamas. Yes it is just a display field. I will try to clone this filed and add the new field right below it and pass the undisplayed string from first field into second field.