Hello,
I want to hide /show custom button according to entity field value (data type:- option set value). If field value is "A" then it show button otherwise hide that button .
function HideButton() {
var fieldVaue = Xrm.Page.getAttribute("new_multipalvalue").getText();
if (fieldVaue == Item1) {
return true;
}
else {
return false;
}
}
but it not working so how could i solve this problems.