function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aratz GuerraAratz Guerra 

Lightning addError + Line break

Hello, 

I want to show 2 error messages using addError, but it seems like in Lightning  doesn´t work line breaks like </br> or </n>

I need something like this:

string br = '</br>';
a.addError('Error 1'+br+'Error 2 ');

Could anyone help me?
Raj VakatiRaj Vakati
I don't think so its possible .. but try this 

string br = '</br>';
a.addError('Error 1'');
a.addError('Error 2');

 
JP SFDCJP SFDC
I tried above but it not worked.