Hi All,
I am getting the following error in Ipad for CRM 2013
can any body give me idea why I am getting this error, I am getting this error only on Ipad, it works fine in web and Outlook.
Field: Windows
Event: load
Error : null is not an object (eveluating Xrm.Page.ui.controls.get("address2_composite").setVisible(false);)
here is the code I used.
function show()
{
debugger;
var FormType = Xrm.Page.data.entity.attributes.get("new_formtype");
var FormTypeTextValue = FormType.getText();
if(FormTypeTextValue == "Basic")
{
Xrm.Page.ui.controls.get("address2_addresstypecode").setVisible(false);
Xrm.Page.ui.controls.get("address2_composite").setVisible(false);
}
else if(FormTypeTextValue == "Advanced")
{
Xrm.Page.ui.controls.get("address2_addresstypecode").setVisible(true);
Xrm.Page.ui.controls.get("address2_composite").setVisible(true);
}
}