web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to set '+' button of Order subgrid on Account form

(0) ShareShare
ReportReport
Posted on by 3,634

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

I have the same question (0)
  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at

    Please check below link,

    ribbonworkbench.uservoice.com/.../489288-show-or-hide-the-add-new-button-on-form-sub-grid

    Thanks,

    Shahbaaz

  • Mohsin Ali Profile Picture
    3,634 on at

    I have been following this and also mentioned my steps in question, but didn't get it working.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    Please Try.

    Default: False

    Function Name: hideCreateButton

    Invert Rule: true

    Hope it will work for you!

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    try to follow the steps below, but remember to replace the EntityName accordingly.

  • Mohsin Ali Profile Picture
    3,634 on at

    not working.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans