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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans