| Ijlal Monawwar

Modal Dialog forms are helpful whenever we need prompt the user to input the information on the current screen. With this new feature, it enhances the UX by enabling the ability of creating and editing data in forms without navigating away.

This can be achieved by using Xrm.Navigation.navigateTo function. We can use it to create new or open and update existing records.

ModalDialogforms

ModalDialogforms

Also we can specify the view to load. If you don’t specify the view, it will navigate to the default main view for the entity.

Syntax:

Xrm.Navigation.navigateTo({ pageType: "entitylist", entityName: "specify entity logical name" });

Example:

Below is the example to open a modal dialog edit form for an existing record.

ModalDialogforms

Parameters:

1. pageInput:

  • type: Object
  • Required: Yes
  • Attributes: The object contains the following attributes:

pageType: String. Specify “entitylist” to show view specified in the entityName and “entityrecord” opens a form for the entity.

entityName: String. Specify logical name of the entity.

formType: String. The type of form specified using a number. For e.g. main, quick-create, card etc.

entityId: String. The Id of the record to be loaded in the form.

Target, position and width control the size and location of the modal form.

For demonstration, I will use the browser console to show how it works.

ModalDialogforms

After hitting enter, it opens the bill form for an existing record specified by the entityId.

ModalDialogforms

Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.



About The Blog

Stay updated with what is happening in the Microsoft Business Applications world and initiatives Imperium is taking to ease digital transformation for customers.


More About Us

We provide guidance and strategic oversight to C-Suite and IT Directors for on-going implementations. Feel free to give us a call.

1 331 250 27 17
Send A Message

Ready to Start?

Get a personalized consultation for your project.

Book a Meeting