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 :
Customer experience | Sales, Customer Insights,...
Answered

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

(0) ShareShare
ReportReport
Posted on by 125
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
 
 
 
 
I have the same question (0)
  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    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
     
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    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.
  • David Lewis Profile Picture
    125 on at
    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
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    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?

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 130 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 117

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans