How to enter a line break in Business rule?

abhijats
Tera Expert

Hi,

 

I have to store some content in Resolution notes field in RITM.

 

And need to format the content by adding some break since the copying and pasting the content in that field will be automatic by business rule.

 

Do you know what to write in code to append content with some break (new line) in business rule.

1 ACCEPTED SOLUTION

Viswanatha Red3
Mega Expert

Hi


Please use '\n' in your code for inserting a new line.


eg :   var resoNotes = "Line1\n";


                  resoNotes+="Line2\n";


  current.resoultion_notes = resoNotes ;



You can insert \n in a single line also like "Line1\nLine2", but the readability would be higher if you follow as per example.


The output would be :


Line1


Line2



Regards


Viswanatha Reddy S


View solution in original post

2 REPLIES 2

Viswanatha Red3
Mega Expert

Hi


Please use '\n' in your code for inserting a new line.


eg :   var resoNotes = "Line1\n";


                  resoNotes+="Line2\n";


  current.resoultion_notes = resoNotes ;



You can insert \n in a single line also like "Line1\nLine2", but the readability would be higher if you follow as per example.


The output would be :


Line1


Line2



Regards


Viswanatha Reddy S


neetusingh
Giga Guru

line break can be done using theescape character \n\n (newline)



Eg : current.description = "test \n test2 \n test3";



I hope this would help