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 :
Customer experience | Sales, Customer Insights,...
Answered

Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

(0) ShareShare
ReportReport
Posted on by 293

As the title says - is it possible to open the quick create form in the navigatoTo method? I managed to open a Main form, but it did not work for quick create forms. Any approach to make that happen? 

I have the same question (0)
  • Verified answer
    prt33k Profile Picture
    6,907 on at
    RE: Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

    It is a browser issue - however we are using the supported version only so you can also raise a support ticket.

    But the alternate approach to create a new form(main) similar to quick create the layout and pass the formid seems to work fine.

  • KVa Profile Picture
    293 on at
    RE: Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

    Do you think this is a browser issue? Should that be supported on all browsers?

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

    Yes, in chrome the quick create doesn't appear to work, it was working in Mozilla though.

    I tried with a custom form and that worked on chrome as well.

    So the alternate approach could be to create a new form(main) similar to quick create the layout and pass the formid as in above code. 

    Remember to add the form in the custom app and give proper role access.

    pastedimage1610862500597v1.png

    Thanks,

    Prateek

  • KVa Profile Picture
    293 on at
    RE: Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

    Thank you.

    Unfortunately, the code and screenshot you are showing are still opening a Main form as modal, not the Quick create form as modal.

    Using the formId of a Quick create form does not work here for me. Or am I missing something?

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Possible to open quick create form as model dialog using Xrm.Page.navigateTo()?

    You can open a quick create form - but it won't appear like it usually appears in a side vertical. But you can open it in a dialog format which might serve the purpose you are looking for... you just need to pass the formid. Below is the code the 

    var pageInput = {
      pageType: "entityrecord",
      entityName: "account",
      formId: "C9E7EC2D-EFCA-4E4C-B3E3-F63C4BBA5E4B"
    };
    var navigationOptions = {
      target: 2,
      height: {value: 80, unit:"%"},
      width: {value: 70, unit:"%"},
      position: 1
    };
    Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
    function success(result) {
      console.log("Record created with ID: " + result.savedEntityReference[0].id + " Name: " + result.savedEntityReference[0].name)
      // Handle dialog closed
    },
    function error() {
      // Handle errors
    }
    );

    pastedimage1610778250566v1.png

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 > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 126

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 117

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans