Info Message from description with Line breaks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 09:50 PM
I have a requirement, where I need to show the value from an description field with line breaks as an info message..
for eg:
Description:
Type: String
First Line
Second line
third line
So in info message it should retain the same format, like
First Line
Second line
third line
But, actually it is showing like this "First line second line third line"
Thanks in Advance..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 10:03 PM
add '\n' to the code where ever line break is needed.
Please share the code so that I can assist you better.
Like or Mark correct based on the impact of response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 10:06 PM
Hello Kapil,
description = This is line one + '\n' + 'This is line two';
add '\n' to the code where ever line break is needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 05:36 AM
Thanks, its worked for me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2017 01:15 AM
I just got an issue on Service Portal where \n doesn't work in InfoMessage.