You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Add validation message as multiple lines

Accepted answer
in Sales 2 comments


Hi Team ,

I have a scenario where validation executes on few custom object fields upon custom button click.

The validation block has various checks and finally it should combine all error messages and show in single error popup as separate lines.

I have tried to achieve this but somehow the messages appear in single line ignoring new line character.

Any idea ?


Content (required):

As a user , I should be able to print validation messages line by line in a error popup.

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!