Thanks, Kalpavruksh, for pointing me in the right direction. It helped me understand that I did not require the Xrm.Page.getAttribute("partners").setValue line at all. Once I took those lines out to be the following, it worked perfectly. Thanks again. function HideMandate_Lookup() { var mandated = Xrm.Page.getAttribute("statemandated").getValue(); if (mandated != 0) { Xrm.Page.ui.controls.get("partners").setVisible(false) } else if (mandated == 0) { Xrm.Page.ui.controls.get("partners").setVisible(true) } }
↧








