Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Collapsible sections on Model Driven Form

Like (0) ShareShare
ReportReport
Posted on 1 Sep 2020 16:23:24 by 80

Hi All,

I am wondering if there is a way to show/hide a section on a model driven form using a collapsible button something like the one shown here:

 

ShalabhGupta_0-1598977387589.png

 

Any help is greatly appreciated.

 

-Shalabh

 

  • Owen Wetherow Profile Picture
    69 on 18 Oct 2022 at 14:57:53
    Re: Collapsible sections on Model Driven Form

    It may be more effort than it is worth:

    • Add a two choice toggle at the top of the section called hide/show
    • Write a business rule that hides/shows all the fields in the section except the toggle

    It works but it is clunky

  • v-xida-msft Profile Picture
    on 03 Sep 2020 at 01:18:57
    Re: Collapsible sections on Model Driven Form

    Hi @ShalabhGupta ,

    Yeah, you are right. If you want to add a custom button next to the Section within your Model Driven form, I afraid that there is no way to achieve your needs in Power Apps currently.

     

    If you would like this feature to be added in Power Apps, please submit an idea to Power Apps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    Regards,

  • Shalabh Gupta Profile Picture
    80 on 02 Sep 2020 at 14:42:22
    Re: Collapsible sections on Model Driven Form

    Hi @v-xida-msft 

    Thank you for this detailed reply. However, the button I am looking forward to is on the section instead of a ribbon. Looks like my ask is currently not feasible within the realms of dynamics using supported customizations.

  • v-xida-msft Profile Picture
    on 02 Sep 2020 at 08:35:13
    Re: Collapsible sections on Model Driven Form

    Hi @ShalabhGupta ,

    Could you please share a bit more about your scenario?

    Do you want to show/hide a section inside a tab on your Model-Driven form using a collapsible button?

     

    If you want to show/hide a section inside a tab on your Model-Driven form using a collapsible button, I afraid that there is no direct way to achieve your needs in Power Apps currently.

     

    As an possible solution, I think custom JavaScript code regarding the Client API Reference could achieve your needs. You could consider add a custom ribbon into your Model-Driven form. Bind the custom ribbon to a specific JavaScript web source, then hide/show the section through the JavaScript code.
    Regarding the needs that you mentioned, I think the setVisible method under the formContext.ui.sections Client API could achieve your needs. Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui-sections

     

    For adding a custom Ribbon button in your Entity form, I think the Ribbon Workbench Tool could achieve your needs:

    6.JPG

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/customize-commands-ribbon#community-tool

     

    Also please check if the following thread would help in your scenario:

    https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/252226/bug-with-tabs-default-expand-collapse-setting-and-business-rules-using-visibility/706478

    Regards,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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 - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 55 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 42 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 31 Super User 2025 Season 1

Overall leaderboard
Loading started