Ticket Lister Multi Line Address

I have been taking pieces from this tutorial.
I am trying to have the ticket lister display the customers address.

I am using this code to strip the linebreaks from the address but it seems to be only working for the first row.
[='{ENTITY DATA:Customers:Address}'.replace('<!rn>','<br/>')]

Street                                
City
Postcode
Country

displays as

Street
CityPostcodeCountry

This is a JS question. When used like that it will replace first break (occurrence). To replace all you need to use regex. I can’t remember exact syntax but you can find more info about that on Internet.

Not really tried but that trick may also work.

[='{ENTITY DATA:Customers:Address}'.split('<!rn>').join('<br/>')]
3 Likes

Works perfect
Thank you

hi
iam trying to break the line as well but can you clearify the syntex more lets say how can i use it

can can i also display the time counter the how long delivery is waiting

and on deliver section can i put time that how long driver is out for delivery

thanks in advance