Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

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.

  • ChrisAdams Profile Picture
    ChrisAdams 10 on at
    RE: How to give break lines between 2 lines in alert dialog box

    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

    :-)

  • SJ1989 Profile Picture
    SJ1989 15 on at
    RE: How to give break lines between 2 lines in alert dialog box

    Thanks for suggesting.

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

    And my project wants two new lines.

  • Suggested answer
    Minghao Yang Profile Picture
    Minghao Yang 75 on at
    RE: How to give break lines between 2 lines in alert dialog box

    Hello,

    I hope this helps you :)

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

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans