cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gilberto00
Level: Powered On

Remove / Hide Add New Record Button

Hey!

 

  I'm build an app in PowerApps (Model Driven app), and I'm trying to hide the add new record button [+ New] of a sub grid (Related Entity).

 

In fact, I'm trying to figure out how to hide this button after set the "Status Reason" field (of "children" Entity) to an option (like "finished"), and based on that, a Business Rule process can disable or hide that button.

 

I that possible to have?

 

 

image.png

 

Thanks!

 

5 REPLIES 5
Community Support Team
Community Support Team

Re: Remove / Hide Add New Record Button

Hi @gilberto00 ,

Do you want to hide the "+ New KPI" button from your Model-Driven form based on the "Status Reason" field value?

 

If you want to hide the "+ New KPI" button from your Model-Driven form based on the "Status Reason" field value, I afraid that there is no way to achieve your needs in PowerApps currently,

 

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

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

 

Best 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.
fmoscu
Level: Powered On

Re: Remove / Hide Add New Record Button

You still have to use the Ribbon Workbench to modify ribbon buttons. It's a bit tedious now, becuase of the new customizations interface, but it still works fine.

 

Once you install the Ribbon Workbenck solution you can use this URL to go to the legacy customizations screen and from there access the Ribbon Workbench interface: https://<env_name>.crm4.dynamics.com/main.aspx?settingsonly=true

 

To hide the new button from the subgrid/associated view you can follow the steps from here:

https://ribbonworkbench.uservoice.com/knowledgebase/articles/489288-show-or-hide-the-add-new-button-...

 

In this example, I just hid the "New Contact" button for the Contact subgrid.

 

new contact.jpg

 

fmoscu
Level: Powered On

Re: Remove / Hide Add New Record Button

Screenshot with the button removed:

Annotation 2019-09-25 135158.jpg

gilberto00
Level: Powered On

Re: Remove / Hide Add New Record Button

Hi!

 

  Thanks for your suggestion! It realy worked, but it's not enough for me, because I need to check the valu of the parent Entity. 

 

Scenario: if "Entity01" has a "Status Reason" as "Approved", I cannot add any row at "Entity02". And if I haven't any how before "Approve" a row at "Entity01", I think that I won't be able to use the web resource to get the value and with it, set visible to enable or disable... Am I wrong? 

 

Ah, de documentaion provide seems like old... I wasn't able to complete the "refresh" part.

 

Many thanks!

Highlighted
gilberto00
Level: Powered On

Re: Remove / Hide Add New Record Button

Thanks!

 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (9,250)