Display string with new line in g_form.showFieldMsg()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 07:32 AM
Hi All,
I am using method g_form.showFieldMsg() to display string, need to display string with new line as given below
a. String one
b. String two
tried to use "\n" as "a. String one" + "\n" + "b. String two" however it didn't work in this case & got message in a one line format.
Any idea how to achieve this?
Regards,
Tapan Nigam
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 07:36 AM
Instead of \n you can use two showFieldMsg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 07:46 AM
Hi dvp,
I have used 2 showFieldMsg also however it displays a thin horizantal white line as a separator b/w two strings.
-- Tapan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 07:36 AM
try using <br> tag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020 06:08 AM
Hello,
you can use "<br\>" to make it in next line.
Ex message: "First line.Second line"
you should enter the string as "First line.<br\> <br\>second line"
output:
First line
Second Line
Note:Please accept the sution if it works for you.