Hello everyone,
as mentioned in subject, I get this error when I try to hide/show subgrid based on other's field value. I create library, write a JavaScript code (down below), add function to onchange event and publish solution. When I try to change field value in client, i get this error Error: 'lotvisible' is undefined. Does somebody know what the solution to this is?
function lotvisible()
{
var fieldLot = Xrm.Page.getAttribute('ec_lotclassification").getValue();
if (fieldLot==true)
{
Xrm.Page.ui.controls.get('tender_lot').setVisible(true);
}
else
{
Xrm.Page.ui.controls.get('tender_lot').setVisible(false);
}
}
*This post is locked for comments