Display string with new line in g_form.showFieldMsg()

tapannigam
Giga Contributor

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

 

 

 

6 REPLIES 6

dvp
Mega Sage
Mega Sage

Instead of \n you can use two showFieldMsg

tapannigam
Giga Contributor

Hi dvp, 

 

I have used 2 showFieldMsg also however it displays a thin horizantal white line as a separator b/w two strings. 

 

-- Tapan

venkatiyer1
Giga Guru

try using <br> tag

Chaithanya10
Tera Contributor

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.