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

How to customize commands in Forms's command bar

Hello,

 

For a model driven app,  in a main form, how to hide commands in form's command bar. for example, we want to hide these buttons

* Deactivate

* Email a link

* assign

 

We also want to write our own code for "Share a link".

 

how to implement this? we can write web resources, but generally want to avoid PCF and plug in development

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @jamesyang ,

Regarding the needs that you mentioned, I think the Ribbon Workbench solution Tool could achieve your needs. The user Teresa24486 has faced similar needs with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Hide-flow-email-a-link-on-model-driven-app-f...

 

Please also check and see if the following article would help in your scenario:

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/191248/hide-command-bar-menu/48489...

 

Through the Ribbon Workbench solution Tool, you could customize the Custom Ribbon action using your own JavaScript code.

 

Please try above solution, check if the issue is solved.

 

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.

View solution in original post

8 REPLIES 8
BrianS
Super User
Super User

Most everything in PowerApps has a Visible property. You can put a variable in that property and then change the value to toggle the visibility. You can limit controls to certain users, you can make controls visible after certain fields are filled in, it is really up to you. For the sharing code you will probably want to use the Launch command

Thanks. In Form editor,  fields have visibility controls, but i don't find where to customize "Command" for a form. would you point to where to find the customization of command? thanks

Sorry - I misread what you were saying - 

I thought you were talking about the SP Form that you can customize in PowerApps. Can you post a screen shot of what you want to customize?

@BrianS 

thanks.  Here is a form for a custom entity. we would like to hide and customize these buttons. how to do this?

 

 

powerapp-commands.png

Now I see - this is not a PowerApp - that is why I was unsure which buttons you were referring to. Your issue is in Dynamics. I would suggest you try this forum:

https://community.dynamics.com/business/f/dynamics-365-business-central-forum

Sorry I was unable to help

Thanks. It is model driven powerapp. We are developing a custom entity with its own forms and views.

Hi @jamesyang ,

Regarding the needs that you mentioned, I think the Ribbon Workbench solution Tool could achieve your needs. The user Teresa24486 has faced similar needs with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Hide-flow-email-a-link-on-model-driven-app-f...

 

Please also check and see if the following article would help in your scenario:

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/191248/hide-command-bar-menu/48489...

 

Through the Ribbon Workbench solution Tool, you could customize the Custom Ribbon action using your own JavaScript code.

 

Please try above solution, check if the issue is solved.

 

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.

Thanks. We will try the ribbon workbench.

as an alternative solution, can we use a custom security role to remove the commands: update, assign, email? i would think if a user does not have these permissions, the commands will automatically be hidden.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,356)