Answered by:
Disable Add Existing button in Ribbon in CRM 2011

Question
-
Hi ,
I have created self relationship on account entity . and related entity name is Subaccount. when I click on Subaccount on left navigation pane AddNewAccount and AddExistingAccount button Enable which is System OOB behavior.However I want to disable them when my current account status is Active and if status is Inactive want to Disable them.
I am facing problem to disabling these button when we click on Subaccount related link from left navigation pane.
How to Disable these system buttons it? Please find below screenshot for your perusal.
Prashanth M..J
Wednesday, April 3, 2013 7:16 AM
Answers
-
Simply, make the look up field on the child entity to the "Required" requirement level. Then the add existing button disappears!
If the answer helped you, remember to mark it as answer.
- Edited by Payman BiukaghazadehEditor Wednesday, April 3, 2013 7:35 AM
- Proposed as answer by Payman BiukaghazadehEditor Wednesday, April 3, 2013 7:35 AM
- Marked as answer by Payman BiukaghazadehEditor Thursday, November 7, 2013 7:27 AM
Wednesday, April 3, 2013 7:34 AMModerator
All replies
-
Hi,
Go through the following links,
http://social.microsoft.com/Forums/en-US/crmdeployment/thread/dafe647a-585b-4b97-8a72-91d0e38641ae
http://nishantrana.wordpress.com/2012/05/18/hiding-ribbon-button-using-javascript-in-crm-2011/
This might be helpful, if so mark this as "Answer" or "Vote as helpful"
Sindu M
- Edited by VidhiyaM Wednesday, April 3, 2013 7:22 AM
- Proposed as answer by SUBI_INDIA Thursday, April 4, 2013 7:18 AM
Wednesday, April 3, 2013 7:22 AM -
Simply, make the look up field on the child entity to the "Required" requirement level. Then the add existing button disappears!
If the answer helped you, remember to mark it as answer.
- Edited by Payman BiukaghazadehEditor Wednesday, April 3, 2013 7:35 AM
- Proposed as answer by Payman BiukaghazadehEditor Wednesday, April 3, 2013 7:35 AM
- Marked as answer by Payman BiukaghazadehEditor Thursday, November 7, 2013 7:27 AM
Wednesday, April 3, 2013 7:34 AMModerator -
Hi SinduM.
But how to disable System button when clicking of left navigation link,Because these button display only when we click on left navigation pane on Subaccount link. These are not on Account Form level but they are on related entity(Subaccount)
Prashanth M..J
Wednesday, April 3, 2013 7:38 AM -
Hi,
If you want to write code, go through the following link,
http://msdn.microsoft.com/en-in/library/gg309639.aspx
Or
You can do it using ribbon editors!
Try,
http://crmvisualribbonedit.codeplex.com/
http://nishantrana.wordpress.com/2011/11/03/the-best-ribbon-editor-tool-for-crm-2011/
This might be helpful, if so mark this as "Answer" or "Vote as helpful"
Sindu M
Wednesday, April 3, 2013 7:49 AM -
Hi Payman,
But what in case AddNewAccount Button. i want to disable these button on particular status of account.
Prashanth M..J
Wednesday, April 3, 2013 8:59 AM