cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

For new line "\n" and "<br />" not working in backoffice MessageBox.show()

Former Member
0 Likes
706

For new line "\n" and ""<br />" not working in backoffice MessageBox.show()

 String str=" 1. P001 \n 2. P002 \n 3. P003";                 MessageBox.show(str);
 
 String str2=" 1. P001 <br /> 2. P002 <br /> 3. P003";        MessageBox.show(str2);

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member625836
Active Contributor
0 Likes

Hi ,

Please bear in mind that it is more zk Message box and you need to read a little bit about it on Potix documentation. Please try this one as starting point: MessageBox.

Cheers,

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - I am lacking time to test it myself but I would try the following:

  String str=" 1. P001 \\n 2. P002 \\n 3. P003";                 MessageBox.show(str);
  
  String str2=" 1. P001 &lt;br&gt; 2. P002 &lt;br&gt; 3. P003";        MessageBox.show(str2);
arvind-kumar_avinash
Active Contributor
0 Likes

Hi - I hope, the solution worked for you (especially, String str=" 1. P001 \\n 2. P002 \\n 3. P003" which I think should work; but as I mentioned earlier, I am too busy these days to test it myself). If yes, kindly update here so that it can be useful to others. If not, then also I request you to update here so that I will try to find another solution.

Former Member
0 Likes

Not Working \\n and &lt;br&gt

arvind-kumar_avinash
Active Contributor