How to new line in edit expression?

0
Hello, I have an widget that uses expression to show the event title which returns a string. I am trying to use new line character in edit expression.   $currentObject/STRING + '<br>'+ 'somedata in new line'+ '<br>' + 'somedata in new line'   returns me: $currentObject/STRING + '<br>'+'somedata in new line'+ '<br>' +'somedata in new line'   This ‘br’ does not work and it just returns me single line. anyone knows how do I concatenate new line in expression?     
asked
2 answers
1

Hello Raghavendra Bhagwat,

I generally use the below syntax for new line;

$variable + '
' + $VARIABLE

Single quote in one line and in another line forms new line.

Hope my answer helps. Reach me out for any queries.

answered
0

Hi gunwoo,

 

maybe something like this helps:

'Title:' + urlDecode('%0D%0D') + 'Text body …' + urlDecode('%0D')

 

Taken from here.

 

Best,

Holger

 

answered