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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Xrm.Navigation.openAlertDialog disable Scrollbar

(0) ShareShare
ReportReport
Posted on by 15

Hi All,

I'm currently facing an issue where I'm getting a bottom Scrollbar even if my Error message is with less characters. I'm using the default Xrm Alert Dialog box in Dynamics CRM. I'm using multiple Alert Dialog Boxes in many lines of my code along with different lengths of Error messages. Any solution to get rid of the scrollbar without using alertOptions as a parameter?

Thanks.

Capture-01.PNG

I have the same question (0)
  • Debajit Dutta Profile Picture
    2,702 on at

    One way I can suggest here is you can use alert options without specifying width in alertoptions which apparently works. In the latest version I have seen it showing vertical scrollbar for messages instead of horizontal.

    Let me know if that works

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Did you try to change another browser?

    I tried in UCI in chrome and it showed well.

    pastedimage1576136325608v1.png

    And then I tried it in classic client with a larger size and it still worked well.

    pastedimage1576136597095v2.png

    function AlertOnload(){
        var alertStrings={};
        alertStrings["text"]="Alert Text";
        alertStrings["tile"]="Alert Title";
        alertStrings["confirmButtonLabel"]="Yes"
        var alertOptions={};
        alertOptions["height"]=120;
        alertOptions["width"]=230;
        Xrm.Navigation.openAlertDialog(alertStrings,alertOptions).then();
    }

    If this situation still exists, please share your code here and we will test in our instance to help you resolve this issue.

    Hope it helps.

    Best Regards,

    Leo

  • isuru.rodrigo Profile Picture
    15 on at

    Is their a possible way without specifying the parameter alertoptions since I'm using multiple Dialog Boxes across various lines of my code? This issue raised recently but before I had no issue with the Dialog Boxes.

  • isuru.rodrigo Profile Picture
    15 on at

    Any possible way without using alertOptions since I'm not using alertOptions?

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Yes, you could also ignore this parameter cause it is not required in this function.

    pastedimage1576137197444v1.png

    Best Regards,

    Leo

  • Debajit Dutta Profile Picture
    2,702 on at

    Yes. this function would work just fine. Default width and height it would take is 250 and 120 I guess. and in case of increasing messages u would get a vertical scrollbar

  • isuru.rodrigo Profile Picture
    15 on at

    I'm not using alertOptions. The only parameters I'm passing are alertStrings but still I get a Horizontal Scrollbar even if my String message is short.

  • isuru.rodrigo Profile Picture
    15 on at

    I get a Horizontal Scrollbar even if my String message is short.

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    What browser are you using? Did you try other browsers?

    Regards,

    Leo

  • isuru.rodrigo Profile Picture
    15 on at

    Tried Chrome and Firefox. Issue still appears

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans