I have this js but it is not changing the value of the two options field. I want it to always change the value from true to false, or false to true. Any help is appreciated.
function test() {
debugger;
value = Xrm.Page.getAttribute("new_convertleadwithoutopportunity").getValue();
alert(value);
if (value = false) {
Xrm.Page.getAttribute("new_convertleadwithoutopportunity").setValue(true);
}
else {
Xrm.Page.getAttribute("new_convertleadwithoutopportunity").setValue(false);
}
Xrm.Page.data.refresh(true);}
*This post is locked for comments
I have the same question (0)