locked
Java Script Error on IPad - CRM 2013 RRS feed

  • Question

  • 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);
                              
    }

    }




    • Edited by CRM Addis Tuesday, February 25, 2014 6:28 PM Update
    Tuesday, February 25, 2014 6:27 PM

All replies

  • Error : null is not an object (eveluating Xrm.Page.ui.controls.get("address2_composite").setVisible(false);)

    can any body point me what does this mean? the web vesion works fine and i am seeing this in the Ipad (MOCA). 

    Thanks,

    Thursday, February 27, 2014 8:09 PM