Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

in Sales 2 comments

Summary:

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 ?

TIA

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):

23B

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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