Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

After wave 2 update Xrm.Navigation.openForm(entityFormOptions,formParameters) not opening the form in pop up window

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Before wave 2 update, below javascript code was opening the new form in pop-up window. But after the update, the same logic is forcing to open the form in new tab in the browser. Is this behavior is part of wave 2 changes?

function openNewRecord(entityType, recordid, parameters) {
     try {

          var entityFormOptions = {
               entityName: entityType,
               entityId: recordid,
               openInNewWindow: true,
               navbar: "off",
            };

         Xrm.Navigation.openForm(entityFormOptions, parameters);
     }
     catch (ex) {
          //error log
     }
}

The parameter openInNewWindow: true is forcing now to open a form in new tab instead of opening it in pop up window.

Our requirement is to open the form in pop up window only.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: After wave 2 update Xrm.Navigation.openForm(entityFormOptions,formParameters) not opening the form in pop up window

    Hi Pratik,

    Microsoft has made some changes as part of their oct release. So, now to achieve this we need to set height & width.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: After wave 2 update Xrm.Navigation.openForm(entityFormOptions,formParameters) not opening the form in pop up window

    Hi Roma,

    Microsoft has made some changes as part of their oct release. So, now to achieve this we need to set height & width property as well.

  • Verified answer
    Pratik Jog Profile Picture
    Pratik Jog 95 on at
    RE: After wave 2 update Xrm.Navigation.openForm(entityFormOptions,formParameters) not opening the form in pop up window

    Hi RahulSunilDesai,

    We encountered the same issue and solved it by adding height and width parameters to the entityFormOptions.

    Can you please check by updating your entityFormOptions variable as below:

    var entityFormOptions = {

                 entityName: entityType,

                 entityId: recordid,

                 openInNewWindow: true,

                 navbar: "off",

                 height: 100,

                 width: 100

              };

  • Suggested answer
    Roma Gupta Profile Picture
    Roma Gupta 725 on at
    RE: After wave 2 update Xrm.Navigation.openForm(entityFormOptions,formParameters) not opening the form in pop up window

    Hi Rahul

    Is this irrespective of browser setting of how to open a new link? Could you check the settings?

    Is this browser specific? Could you please check for IE if you have already tested on Chrome?

    Also, there are known cases where discrepancy occurs. Read links below:

    stackoverflow.com/.../53406004

    community.dynamics.com/.../xrm-navigation-openform-opening-a-specific-form-in-the-new-ui

    Hope this helps.

    Regards

    Roma

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans