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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans