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 :
Microsoft Dynamics CRM (Archived)

Unable to get property 'getValue' of undefined or null reference.

(0) ShareShare
ReportReport
Posted on by

Hi, I am getting a strange error "Unable to get property 'getValue' of undefined or null reference".  I even remove all the scripts from the Form and no script attach in ribbon as well. Cache is cleared. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jitendra Sahu Profile Picture
    2 on at

    Hi Sohail,

    Make sure your field is not a typeof Lookup.

    Also check whether you have entered valid attribute name as

    Xrm.Page.getAttribute("prefix_name");

  • Suggested answer
    Jitendra Sahu Profile Picture
    2 on at

    Also remember

    getValue is a method, so the right way is getValue()

    Xrm.Page.getAttribute("prefix_name").getValue();

  • Suggested answer
    Hosk Profile Picture
    on at

    Do you have any javascript running on a form?

    if you have removed the javascript from a form then you need to save and publish those changes

  • Waqar Sohail Profile Picture
    on at

    Thanks Guido, But debugger is not working... Also I think FormLoad Event not getting trigger as well. I put the debugger on change of field it works but On load function is not getting called as this error comes first.

  • Waqar Sohail Profile Picture
    on at

    Hi Ben, I remove all the script and for sure I save and Publish but form still getting this issue. I check this on other System as well.  On Load script not getting called but if i put script on Change field it works.

    Thanks

  • Hosk Profile Picture
    on at

    What version of CRM are you using?

  • Waqar Sohail Profile Picture
    on at

    Ben 2013 on Prem, There was some script on field before. So I remove the field and also remove the script from there. But now it causing this issue.

  • Hosk Profile Picture
    on at

    Have you removed the form onload event

  • Waqar Sohail Profile Picture
    on at

    Yes :) . do you think it caching something about onload event? because onload event it not getting call even.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans