function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nello_THnello_TH 

Javascript error: 'Sfdc' is undefined

We have a custom object within a managed package which has view and edit overrides to a visualforce page within the same package. We have found the following javascript error ocurring when a user clicks a link to view the object:

 

SCRIPT5009: 'Sfdc' is undefined 
VFState.js, line 1 character 1

 

The error is not preventing the VF page from appearing or functioning correctly, it's happening under the covers but it would be good to know why it's happening and and whether it can be resolved.
Any ideas gratefully received...
Thanks
Navatar_DbSupNavatar_DbSup

Hi,

 

You Have to include the below script in the JavaScript code called in the Link

 

{!requireScript("/soap/ajax/13.0/apex.js")}

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.