Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Java Script Error "Error: Function Not Defined" with pics and code

Posted on by 99
Dynamics CRM 2016 9.2 on prem
 
Current Error on page load
 
My Code
 
Anyone ever experience this error?
 
Followed these steps:
 
1. added to my solution via web resource
 
2. Added to Form Properties
 
3. Added to field properties
 
 
 
 
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Java Script Error "Error: Function Not Defined" with pics and code
    Hi Partner,
    In the form editor, you can get tab name easily:
    --Select the tab which you want to hide show and click on "Change Properties"
    --Then we can find this tab name:
    If someone answered your question, can you check this box to mark that response as an answer?
  • David Lewis Profile Picture
    David Lewis 99 on at
    Java Script Error "Error: Function Not Defined" with pics and code
    So there turned out to be a combination of errors... 
     
    When I copy and pasted it messed up my quotations around the "summary" section.
     
    Also I just learned that the schema name is case sensitive. I had "SUMMARY" in my code and on the form it is "summary" 
     
    Also I did not have the "pass execution context as first parameter" checked
  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    Java Script Error "Error: Function Not Defined" with pics and code
    Hi,
     
    The error you are getting related to the syntax error which is coming due to this char, normally this char is when you copy code from somewhere, please correct this and re-try, Also Xrm.Page is not supported now so you should use formcontext as suggested in earlier reply.
  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Java Script Error "Error: Function Not Defined" with pics and code
    Hi Partner,
    Not using 'Xrm' in your code, try to use this:
    formContext.ui.tabs.get(arg);
    When you added the method, were these two options checked?

    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans