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,...
Suggested Answer

Script error on Contact form

(0) ShareShare
ReportReport
Posted on by 10

I'm receiving the following script error on the Contact form. It started happening after I updated a few solutions. Any suggestions?

TypeError: executionContext.getFormContext(...).ui.tabs.get(...).getDisplayState is not a function
at updateUserPreferences (4dcisolution.crm.dynamics.com/.../notify_loader.js:2230:77)
at initNotify (4dcisolution.crm.dynamics.com/.../notify_loader.js:2254:6)
at 4dcisolution.crm.dynamics.com/.../notify_loader.js:2265:8
at iv_notifyOnLoadActivity (4dcisolution.crm.dynamics.com/.../notify_loader.js:2268:7)
at mp.executeFunction (4dcisolution.crm.dynamics.com/.../app.js
at mp.execute (4dcisolution.crm.dynamics.com/.../app.js
at up._executeIndividualEvent (4dcisolution.crm.dynamics.com/.../app.js
at up._executeEventHandler (4dcisolution.crm.dynamics.com/.../app.js
at Object.execute (4dcisolution.crm.dynamics.com/.../app.js
at O._executeSyncAction (4dcisolution.crm.dynamics.com/.../app.js

I have the same question (0)
  • Suggested answer
    Vijay Tailor Profile Picture
    431 on at

    Hi,

    its Looks like missing to pass execution context parameter in java script function used for an account form.

    For More details please find below thread .

    community.dynamics.com/.../updated-account-form---executioncontext-getformcontext

  • DCI Solution Profile Picture
    10 on at

    I did see that thread but honestly I don't understand the answer nor how to fix it. We are a small firm and while I am the admin, I am really a novice at IT.

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi, 

    Please check this blog, you can find all the steps with some screenshots 

    carldesouza.com/.../

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    It seems there is a onLoad script on contact entity which might be causing issue here. Looking at error details shared by you, most likely highlighted function is causing issue here and function "iv_notifyOnLoadActivity" is coming from Library: iv_/scripts/notify_loader.js -
    -

    TypeError: executionContext.getFormContext(...).ui.tabs.get(...).getDisplayState is not a function
    at updateUserPreferences (4dcisolution.crm.dynamics.com/.../notify_loader.js:2230:77)
    at initNotify (4dcisolution.crm.dynamics.com/.../notify_loader.js:2254:6)
    at 4dcisolution.crm.dynamics.com/.../notify_loader.js:2265:8
    at iv_notifyOnLoadActivity (4dcisolution.crm.dynamics.com/.../notify_loader.js:2268:7)
    at mp.executeFunction (4dcisolution.crm.dynamics.com/.../app.js
    at mp.execute (4dcisolution.crm.dynamics.com/.../app.js
    at up._executeIndividualEvent (4dcisolution.crm.dynamics.com/.../app.js
    at up._executeEventHandler (4dcisolution.crm.dynamics.com/.../app.js
    at Object.execute (4dcisolution.crm.dynamics.com/.../app.js
    at O._executeSyncAction (4dcisolution.crm.dynamics.com/.../app.js

    I researched on this further and it seems that above code belongs to "Inside View" solution. As a workaround, you can deactivate the onLoad script, publish customizations and check if it helps.

    If you are not using the "Inside view" solution then you can uninstall the solution but if you are using the solution then you can open a ticket with us or inside view support team so that we can check what is missing here - most likely one of web resource is missing from contact form.

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 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans