Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 65 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 36 Most Valuable Professional