我創建了一個javascript,其中我想根據某些條件隱藏功能區按鈕Reactivate Lead
。在CRM 2011中獲取功能區按鈕的ID
我通過按下F12表單上的lead|NoRelationship|Form|Mscrm.Form.lead.ReactivateLead-Large
獲得了該按鈕的Id。
在JScript中,獲得該按鈕 -
document.getElementById("lead|NoRelationship|Form|Mscrm.Form.lead.ReactivateLead-Large");
,但我沒有得到這個按鈕,它給我空..我沒有得到什麼問題。如果有人提出建議,請告訴我。
謝謝
CRM-2011功能區按鈕無法使用的Jscript隱藏返回布爾值按鈕的可見性。試試這個,而不是http://www.powerobjects.com/blog/2011/06/17/crm-2011-enabling-and-disabling-ribbon-buttons-2/ – 2012-05-25 15:09:45