web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by 1,821

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.

5633.j1.png

js10.png

js11.png

j12.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You posted pretty similar question here - community.dynamics.com/.../231523 Has anything changed since then?

  • P NOUSHAD Profile Picture
    1,821 on at

    Hi Andrii,

    I did not get any response this issue.  Since it is critical kindly help me to solve this.  No java functionalities working after upgrade CRM 2015 to CRM 2016.  What could be the reason.

    Regards,

    Noushad

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Noushad,

    If nobody answered what's the point in opening of new thread? Isn't it more logical to update previously opened thread with new details or just some dummy reply to move it up?

    If nobody knows the answer here I would suggest to get in touch with Microsoft Support and open support ticket.

    Good luck.

  • prt33k Profile Picture
    6,907 on at

    looks more of formatting issue... if function is defined then it will be available.

    Can you try pasting the script in JS editor and check if it is fine?

  • P NOUSHAD Profile Picture
    1,821 on at

    Hi,

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

    Regards,

    Noushad

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    Can you check if you are passing any parameter without single quote.

    I got somewhat same error and resolved using passing the parameter to the method in a single quotes.

  • Suggested answer
    SunilJ Profile Picture
    10 on at

    This issue occurrence some time in the form if the form is not published properly or some issue or upgrade time.

    If you think your java script working earlier and suddenly this issue occurred in your form , remove your code from the OnLoad method from your javascript publish the code. Run your form see if the error go out. Again add your form load code into your script and publish. I did this for me the issue didn't appear after adding load code.

    On another scenario you will see this error if any unsupported javascript code in your script file. 

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    My suggestion is to remove all the code, then just create empty function called Form_onload. If this one working fine, it is likely because of wrong code on your file. Something like not close properly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans