"тнιѕ вℓσg ¢συℓ∂ ѕανє уσυя мσηєу ιƒ тιмє = мσηєу" - ∂.мαηנαℓу

Wednesday 30 March 2011

How to retrieve Checkbox value in CRM 2011 using Javascript / How to get Checkbox value in CRM 2011 using Javascript

The following code snippet is to retrieve the checkbox value in CRM 2011 using Javascript.

    var myAttribute = "attributename";

    var myControl = Xrm.Page.ui.controls.get(myAttribute);

    var  myCheckboxValue = myControl.getAttribute().getValue();
// returns True or false

    if (myCheckboxValue == true)

    {

//Code- eg: hide or show a control

    }

1 comment: