Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Disable Quick View Form on (+) Sub-Grid and open Main Form instead

Posted on by 873

Hello everyone,

I want to disable the quick create form from a subgrid (Customer Assests Entity in Field Service) and instead, it should open the “Main form” of the entity.

If the quick create is disabled I am expecting that it will open the main form when they press the “+” icon.

If the above is possible what are the steps that should be done to disable the quick create form and set the default form for the subgrid to be the "Main Form"?

Any help will be highly appreciated.

Thank you!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Disable Quick View Form on (+) Sub-Grid and open Main Form instead

    Hi EBMRay,

    Yes, you need to customize (+) button from Subgrid in Robbin Workbench.

    And then pass Primary Control to your JS and use Xrm.Navigation.openForm() function to open your form.

    You could refer to these links:

    https://blog.magnetismsolutions.com/blog/alfwynjordan/2019/10/02/getting-dynamics-365-formcontext-from-ribbon-workbench

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/Xrm-Navigation/openForm#example-2-open-a-form-for-new-record

    If you get stuck, feel free to ask.

  • EBMRay Profile Picture
    EBMRay 873 on at
    RE: Disable Quick View Form on (+) Sub-Grid and open Main Form instead

    Hi Steve,

    Thank you for providing screenshots and an explanation of each step to achieve that.

    I have tried what you mentioned and it worked perfectly.

    I just have a last concern if you want to pass some parameters to the main form when you click (+) button from Subgrid the customization should be done from Ribbonworkbench with Custom JS?

    If so, can you provide an example of a resource showing how to achieve that?

    Your help is highly appreciated.

    Best regards,

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Disable Quick View Form on (+) Sub-Grid and open Main Form instead

    Hi EBMRay,

    You need to disable Allow quick create of Customer Asset.

    1.Navigate to the Settings->Customizations->Customize the System.

    pastedimage1632793238412v2.png

    2.Click the Customer Asset entity and disable Allow quick create.

    pastedimage1632793141706v1.png

    If you want to set the default form, you need to click form of Customer Asset and change the main form order.

    I created a main form and set it as default form.

    pastedimage1632793631964v3.png

    pastedimage1632793687411v4.png

    pastedimage1632793697902v5.png

    Result:

    pastedimage1632793838041v8.png

    pastedimage1632793843142v9.png

     

    Note: 

    Disable Allow quick create will make your quick form not pop up anywhere, not only subgrid. If you only want to change the button on subgrid, you could customize the command of it by Ribbon Workbench.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans