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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans