In dynamics CRM 365 (online) I am using Ribbon Workbench I required to hide '+' button of Order subgrid on Account form and keep it showing on Contact form. I am using following script and setting for Enable Rule of 'New' and 'Add Existing'. But its not working and keep showing on both forms; accounts and contacts. Any idea how to make hidden on Account form only?
Ribbon Workbench Settings:
Default: True
Function Name: hideCreateButton
Invert Rule: False
Library: <name of library>
Script
function hideCreateButton(){
var entityName = Xrm.Page.data.entity.getEntityName(); if(entityName == "account"){ return false; } return true; }
*This post is locked for comments