I am using 2 Subgrids of the same Entity A on the form of Entity B. The two Subgrids differ in the way that they use different Views inside them. Two different Views are created for each Subgrid in the Entity A.
I need to remove the '+' (plus) button that comes above the Subgrid, but for only one of them, and not both.
*This post is locked for comments
Do NOT do Lathin solution. It's an unsupported hack, which does not even work in 2016\365 anymore.
Did the javascript logic help??
Thanks
Goutham
<<Please mark my answer as verified if it solves your query>>
Hi Nikhil,
I think using ribbon workbench would hide plus button on all the grids for that entity. If you want only to hide it for specific subgrid, then you can add a custom javascript on page load and hide the plus button.
the id of the plus button will be the subgrid id/name given on the form(when creating it via customization) plus "_addImageButton". For example if the id/name of the subgrid is "subgrid1_incident", then the id of plus button would be "subgrid1_incident_addImageButton". Hence hide logic would be
$("#subgrid1_incident_addImageButton").hide(); //Jquery
document.getElementById("subgrid1_incident_addImageButton").style.display = "none"
Thanks
Goutham
<<Please mark my answer as verified if it solves your query>>
Hi ,
You can use ribbon work bench. Go to the ribbon work bench open the entity which + button you want to hide sub grid form + button right click press hide and publish it your button will be hidden. Please go to the entity which + button you want to hide.
If this suggested answer has resolved your issue please mark as verified to helps others in the future.
Hi
You can use the Ribbon Workbench to do this
Hi Nikhil,
There is no supported way to remove '+' button apart from restricting through security role.
But since you need it on same entity then security role option wont work.
The supported way will be to restrict it using plugin on associate message and check in entity A and Entity B are fulfilling the condition and if not then throw exception.
The unsupported way will be using javascript and hiding the element.
Thanks,
PS
You can use unsupported javascript.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156