web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to give break lines between 2 lines in alert dialog box

(0) ShareShare
ReportReport
Posted on by 15

pastedimage1571979929953v2.png

This is a message to be shown on ALert Dialog Box. I am trying to give a line space between "OG------" and its previous line through javascript but it is escaping the line break command: "\n". 

Please suggest how o give line breaks through javascript in alert dialog box.

I have the same question (0)
  • Suggested answer
    Minghao Yang Profile Picture
    75 on at

    Hello,

    I hope this helps you :)

    stackoverflow.com/.../new-line-in-javascript-alert-box

    Thanks

  • SJ1989 Profile Picture
    15 on at

    Thanks for suggesting.

    But, by \n, it is giving only one new line.

    And my project wants two new lines.

  • ChrisAdams Profile Picture
    10 on at

    The way to achieve this is to add a braille space between two new line characters...

    \n\u2800\n

    so...  "line 1\n\u2800\nline2" displays as

    line1

    line2

    :-)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans