Tuesday, November 26, 2013

MSCRM : Checking the Checkbox is checked or not using Java script

MSCRM 2011 : Checking the Checkbox is checked or not using Java script

var useexistingcheckbox = "checkboxAttributeName";

var ckeckboxControl = Xrm.Page.ui.controls.get(useexistingcheckbox);

var ckeckboxControlValue = ckeckboxControl.getAttribute().getValue();

if (ckeckboxControlValue == true)
{
   //Code
}
else
{
   //Code
}

Hope This will Help :)

Best Regards,
Sreenath

No comments:

Post a Comment