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 CRM (Archived)

Unable to launch modal dialog from ribbon button following 6.1.1.123 update (Chrome Browser)

(0) ShareShare
ReportReport
Posted on by 380

Hi, 

It appears that following this UR1 for SP1 update that the code I use to launch custom modal dialogs in CRM Online is no longer working in the Chrome Browser.   

Here's the code, which still works in IE but no longer in Chrome. (Version 37.0.2062.120 m)

Any ideas?

/// Launch the Update Probability dialog
function launchUpdateProbabilityDialog()
{
    var dialogId = "df1c3969-5173-43ec-a7f7-9187e2864121"; 

 // Load modal
 var serverUri = Mscrm.CrmUri.create('/cs/dialog/rundialog.aspx');
 var recordId = Xrm.Page.data.entity.getId();
 window.showModalDialog(serverUri + "?DialogId=" + dialogId + "&EntityName=opportunity&ObjectId=" + recordId, null, "dialogWidth: 660px; dialogHeight: 650px,resizable=1,status=1,scrollbars=1 ");

 // Reload form.
 window.location.reload(true);
}

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    DH kumar CRM Profile Picture
    1,345 on at

    Hi,

    can you try the below code

    /// Launch the Update Probability dialog

    function launchUpdateProbabilityDialog()

    {

       var dialogId = "df1c3969-5173-43ec-a7f7-9187e2864121";

    // Load modal

    var serverUri = Mscrm.CrmUri.create('/cs/dialog/rundialog.aspx');

    var recordId = Xrm.Page.data.entity.getId();

    recordId=recordId.replace("{", "");

    recordId=recordId.replace("}", "");

    window.showModalDialog(serverUri + "?DialogId=" + dialogId + "&EntityName=opportunity&ObjectId=" + recordId, null, "dialogWidth: 660px; dialogHeight: 650px,resizable=1,status=1,scrollbars=1 ");

    // Reload form.

    window.location.reload(true);

  • Suggested answer
    Sayhaitokumar Profile Picture
    7,042 on at

    Hi Yeoman,

    Please use IE browser, because Chrome doesn't support some features of CRM after it's updates. IE is recommended browser for dynamics CRM.

  • Yeoman Profile Picture
    380 on at

    Hi Guido, thanks very much for your response.  I have noticed Chrome becoming increasingly unpredictable since version v37 so I was interested to get confirmation and learn more about why from your blog.  Unfortunately the reg fix solution you provided hasn't worked for me.  It looks like it may be a case of using IE then for now.  

  • Yeoman Profile Picture
    380 on at

    Hi DH Kumar,

    Thanks for your code suggestion, unfortunately this didn't resolve the issue.  I share Guido's theory that the problem is with Chrome deprecating support for the window.showModalDialog method.

  • Suggested answer
    DH kumar CRM Profile Picture
    1,345 on at

    Hi Yeoman,

    The code should be working fine. And to check/validate that did you try that code with IE. Moreover, the recommended browser by MS is IE only and also as per Best Practices we should use IE for any type of dynamic CRM customizations.

  • Yeoman Profile Picture
    380 on at

    Guido - Great, thanks, following the steps to amend the policy and enable the deprecated web platform features has resolved this issue for me in Chrome.  

    DH Kumar - thanks, yes the code you suggested does work fine in IE, as did my original code, I did specifically need a solution for continuing to use custom dialogs in Chrome however. Using Internet Explorer does resolve the issue but many of my clients consume CRM through Chrome and there are other reasons in their business why this is the case so it's not viable to implement a change like that very quickly for my users.  

  • Greg Owens Profile Picture
    on at

    @DH kumar CRM You are wrong to use the term "recommended browser". Microsoft no longer use the term "recommended" for IE. They explicitly state that Chrome is supported. There is no "Best Practice" which mandates IE.

    technet.microsoft.com/.../hh699710.aspx

    Guido's answer is correct here.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans