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

Xrm.Utility.openEntityForm: open form in new window (popup)

(1) ShareShare
ReportReport
Posted on by

I am using this function to open a new entity form, but it opens in the same window. Is it possible to open it in a popup window?

The solution here does not work, because there is just a link to the function description: https://community.dynamics.com/crm/f/117/t/119978

In this page the last example (with extraqs) does open a popup window but if I click "Save and close" on the new window, what I see then is a view with all opportunities, but I would like to see the calling page where I was before.

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Xrm.Utility.openEntityForm: open form in new window (popup)

    var entityFormOptions = {};

    entityFormOptions["entityName"] = "contact";

    entityFormOptions["openInNewWindow"] = true;

    docs.microsoft.com/.../openform

  • Suggested answer
    Luke Sartain Profile Picture
    1,266 on at
    RE: Xrm.Utility.openEntityForm: open form in new window (popup)

    To expand on Andrii's link you'll need something like this:

    var options = { openInNewWindow: true };
    Xrm.Utility.openEntityForm(entityname, recordid, null, options);

  • Suggested answer
    Yadnyesh Kuvalekar Profile Picture
    4,102 on at
    RE: Xrm.Utility.openEntityForm: open form in new window (popup)

    Hi,

    To achieve your requirements, you should not open the new entity form in separate window. Rather if you open the new entity form in same window, then on Save & Close, it will navigate the user to the parent page from where it was called. So no need of new window.

    Kindly tick verify answer if this resolves your query.

    Thanks.

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Xrm.Utility.openEntityForm: open form in new window (popup)

    Hello,

    Check this - msdn.microsoft.com/.../jj602956.aspx especially part related to windowOptions.

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

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans