SPUtility.GetSPField returns NULL when using in DispForm.aspx

Feb 15 at 5:52 PM
Edited Feb 15 at 6:43 PM

Hi,

SPUtility.GetSPField() function worked fine if I use it in Content Editor Webpart in EditForm.aspx

But When I am trying to use it in the DispForm.aspx, SPUtility.GetSPField() is returning null. I tried with different fields, it is not working on any fields.

If anybody has experienced this, please let me know what is the issue and how to fix it.

Thank You

 

Coordinator
Feb 16 at 5:10 PM

Some things to check:

  1. Are you including Prototype.js before SPUtility.js?
  2. Are you using _spBodyOnLoadFunctionNames or Event.observe to run after the page has loaded?

Can you paste the code you're including at the top of the page using SharePoint designer?