cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

Collapsible sections on Model Driven Form

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

 

3 REPLIES 3
Community Support
Community Support

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/formconte...

 

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#com...

 

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...

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Users online (21,259)