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,618

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

  • Mohsin Ali Profile Picture
    3,618 on at
    RE: Unable to set '+' button of Order subgrid on Account form

    not working.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: Unable to set '+' button of Order subgrid on Account form

    Hi,

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

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Unable to set '+' button of Order subgrid on Account form

    Hello,

    Please Try.

    Default: False

    Function Name: hideCreateButton

    Invert Rule: true

    Hope it will work for you!

  • Mohsin Ali Profile Picture
    3,618 on at
    RE: Unable to set '+' button of Order subgrid on Account form

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

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: Unable to set '+' button of Order subgrid on Account form

    Please check below link,

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

    Thanks,

    Shahbaaz

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans