Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

[Model Driven App] Open modal form when adding (+new) record from a subgrid?

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Is it possible to open a model form when creating a new subgrid record? I know this is possible because MS itself does this in for example the Field Service module. But I cannot find a way to trigger an event from the +new button. I know its possible to create a button yourself and add the JS to that but I would prefer to avoid that and use only OOB.

 

MS's own documentation shows you can create a new record this way but doesn't mention how to trigger it from +new.


https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/customize-entity-forms#open-main-form-in-a-dialog-using-clientapi

Categories:
  • Jonathan Manrique Profile Picture
    2,678 on at
    Re: [Model Driven App] Open modal form when adding (+new) record from a subgrid?

    Hi  @NoName404 

     

    The other option, if you want the main form to open from the new button of a subgrid, is to deactivate the creation of records with quick creation forms, that way the main form will always be used and you do not need to use code, you set it to table settings

     

    Jmanriquerios_0-1699604827366.png

     

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution

  • ivan_apps Profile Picture
    2,187 Super User 2025 Season 1 on at
    Re: [Model Driven App] Open modal form when adding (+new) record from a subgrid?

    Yes right now - OOB - you can open a new form dialog without code only from a Lookup column. MS hasn’t added that easy config option to open or create from dialog inside subgrids…yet.

    Like you mentioned, both dialogs are possible with JS code customizations but requires app support to have experience with these abilities when making changes in the future. The JS isn’t very complicated but to delete the subgrid’s +New and recreate it with your custom JS would take a bit of know-how. Ribbon Workbench does a great job at making it easy make this change but you’d have to carefully document it for future support.

  • NoName404 Profile Picture
    on at
    Re: [Model Driven App] Open modal form when adding (+new) record from a subgrid?

    I was afraid that would be the case. Kinda annoying its obviously possible because MS is doing it themselves but then they expose only half of what you need in the API...

     

    Its also not very consistent from a user pov. Why can you open the form in a dialog when selecting a record but not when creating a new record?

     

    I could use a quick create form but there is a bug (or feature...) that doesn't display embedded forms properly (only 1 line).

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on at
    Re: [Model Driven App] Open modal form when adding (+new) record from a subgrid?

    Hi @NoName404,

     

    Unfortunately no out of the box no-code way to open a main form dialog from a sub grid. It's something I've wanted for sometime myself.

     

    If you have quick create enabled for the table, then you can create a new record using that, but of course we know quick create forms have some limitations. 

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
Fubar Profile Picture

Fubar 11 Super User 2025 Season 1

Overall leaderboard

Featured topics