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)

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)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

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

  • Suggested answer
    Yadnyesh Kuvalekar Profile Picture
    4,102 on at

    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.

  • Suggested answer
    Luke Sartain Profile Picture
    1,266 on at

    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
    Community Member Profile Picture
    on at

    var entityFormOptions = {};

    entityFormOptions["entityName"] = "contact";

    entityFormOptions["openInNewWindow"] = true;

    docs.microsoft.com/.../openform

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