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

Community site session details

Session Id :
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

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.

I have the same question (0)
  • Community Member Profile Picture
    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
    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
    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
    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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
DAnny3211 Profile Picture

DAnny3211 251

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 90 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans