Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Ribbon Button Enable/Disable

$
0
0

Hi Guys,


I need to enable and disable based on custom rule. I have used below code and called from enable  rule. This coding working, but show/hide instead of enable/disable. Please suggest any one.

 

code :

 

function customRule()

{

 var GetValue = Xrm.Page.getAttribute("new_custume").getValue();

 if (GetValue == 1) {

 returnfalse;

   }

 else {

 returntrue;

    }

}

 


Viewing all articles
Browse latest Browse all 55831

Trending Articles