locked
ReferenceError: 'Form_onload' is undefined at eval code (eval code:1:1) RRS feed

  • Question

  • Hi,

    I am getting below error after upgrade CRM 2015 to CRM 2016 when run java script functions.   Upgrade completed without any error. Kindly help me to solve this issue.

    Please find the screen-shots for your reference.  Let me know if you need any more clarification on this issue.


    pnoushu@hotmail.com

    Wednesday, March 29, 2017 2:14 PM

Answers

  • Hi,

    The solution is delete the main library from form properties and add again.

    Regards,

    Noushad


    pnoushu@hotmail.com

    Monday, April 3, 2017 11:20 AM

All replies

  • Hi,

    Is your javascript is inside a namespace? Since I can't see the whole javascript file can't say it. If it is in a namspace you need to give the namespace.functionname in your form editor.


    Sachith Chandrasiri

    Wednesday, March 29, 2017 10:35 PM
  • Hi Sachith,

    Kindly give more details on namespace.function in for editor.   Please give a sample for clarification.

    Regards, 


    pnoushu@hotmail.com

    Thursday, March 30, 2017 5:21 AM
  • Try to copy your javascript code some where any remove other code except 

    function Form_onload()

    {

    alert("test");

    }

    and check is issue still their or not.


    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Thursday, March 30, 2017 5:49 AM
  • I am also having issue in get the value of entityType.

    Regards Faisal

    Friday, March 31, 2017 3:04 PM
  • Hi,

    The solution is delete the main library from form properties and add again.

    Regards,

    Noushad


    pnoushu@hotmail.com

    Monday, April 3, 2017 11:20 AM