Question
Evonsys
IN
Last activity: 27 Jun 2019 1:51 EDT
How to append New Line Character in a field value
Even though I add a new line character '\n' for the text in the field value all the text is appearing in the same line. Is there a way to add line break in the filed value?
I tried to use \r\n, <br> also but of no use.
Is there a way to implement it. Please advise?
***Edited by Moderator Marissa to update platform capability tags****
-
Likes (1)
leah Pokroy -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi Rajashekhar,
To add a line break, please add </br> after each word for e.g:
asd </br>
sds </br>
sds </br>
dsdsd </br>
This will add a new line to the filed value.
Regards,
Rahul
Evonsys
IN
Hi Rahul,
I have added </br> tag, but it is not working. PFA.
Thanks.
Pegasystems Inc.
US
Hi, We could see the line break happening with </br> in the latest version so would like to know what version of Pega you are using. Also could you make sure that the field value you are calling is getting resolved correctly to the one you wanted with </br>.
Ikor PX
AU
Hi Chitra,
I have tried the above approach in version 7.3.1 and it did not work. Can you please know in which version did it work for you?
Pegasystems Inc.
IN
Hi,
Thanks for your response.
Could you try giving the tag in "" and check what values you get in screen?
Regards,
Rahul
Aaseya IT Services
IN
Hi ,
We have also similar requirement for message rule. We tried using </br> but no luck, can anyone please help us on this?
Thanks,
Shashi
TCS
AU
Hi ,
Please give <BR> wherever you want to introduce line break.We used it in Pega Infinity version and the result is as expected
Aaseya IT Services
IN
Hi,
Yes I have tried this also, but if we are using any of the above mentioned tags we are getting the message along with the tags see the attachment added.The case is same with other tags including / in it.
-
Sindhuja Alla
Ikor PX
AU
We have the same requirement to add line breaks to FV but it does not work.
I have to display a text of some 8-10 lines (which contains line breaks) along with a checkbox (Terms and Conditions sort of).
The alignment goes off if i try using a paragraph along with a checkbox within a layout. Wanted to try using FV but read it help that FV does not allow "br,/n" tags.
Did any one get through this?
Aaseya IT Services
IN
Yes we can use </BR> in the field value, the results are as expected. It worked in 7.3.1 version.It forms a new line after the tag.
-
Daniel Stopka