none
CRM2011 JScript Error Null or not an object

    General discussion

  • Hi,

    I have created a JScript web resource which has the following function

    function getvalue()

    {

    var myValue = Xrm.Page.getAttribute(“CRMFieldSchemaName”).getValue() ;

    alert(myValue);

    }

    I am executing this function on Form load.

    But I am getting javascript error  - Xrm.Page.getAttribute(...) is null or not an object.

    Please let me know what might be wrong.

     

    Thanks in advance

    Guru

    • Changed type Guru555 Saturday, July 09, 2011 7:39 AM
    • Changed type Guru555 Saturday, July 09, 2011 7:39 AM Need to discuss
    Saturday, July 09, 2011 7:35 AM

All replies