- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 11:39 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 11:48 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 11:48 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014 11:51 PM
line break can be done using theescape character \n\n (newline)
Eg : current.description = "test \n test2 \n test3";
I hope this would help