Announcements
No record found.
Hi - I have an error pop up everytime I click into a Contact Profile. There is no functional issue and when I click OK it goes away without issue but it is annoying nonetheless. Please see the screenshot below:
The script error is as follows. Can you please advise how to get rid of it?
Thanks!
Hello JhoustonBGCDA,
According to your error message, you could have a onload event of your contact main form with the code like this:
var formContext = executionContext.getFormContext();
formContext.getControl("your field name").setVisible(true/false);
And formContext.getControl("your field name") returns null(Your field name could be wrong) which caused this error.
Please check this.
Hello,
Pls, refer this thread,
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/281816/script-error/805212
I hope it helps,Thanks.Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
NeerajPawar 31
Tom_Gioielli 19 Super User 2026 Season 1
11manish 18