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
239

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
nicolas_hug
Explorer
0 Kudos

Scripting will help: Code example

var str = "Begriff1 Begriff2";

// Separate the string at the space character:
var parts = str.split(' ');

// seperate with line break:
var result = parts.join('\n');

// put result into the field:
session.findById("wnd[0]/usr/wlblPersonas_173382101538058").text = result;
script_Line-break.png
mrajesh1
Explorer
0 Kudos
Thanks Nicholas. Will check this out