0

I added a javascript static resource to a folder called VisualForceElements like so:

enter image description here

Then within my opening <apex:page> I make the call to reference the resource like so:

<apex:includeScript value="{!$Resource.LookupJS}"/>

But unfortunately I keep getting this error:

Error: Static Resource named LookupJS does not exist. Check spelling

I tried also including the folder name like so:

<apex:includeScript value="{!$Resource.VisualForceElementsLookupJS}"/>

but that didn't work either. Any thoughts or suggestions?

2
  • 1
    Document is not the same thing as Static Resource.
    – Adrian Larson
    Commented Sep 28, 2015 at 22:00
  • 1
    Sorry, that was my bad. Long day? Perhaps someone else new to SF will make the same stupid mistake. Commented Sep 29, 2015 at 16:27

1 Answer 1

5

You want to upload it as a Static Resource under Setup -> Develop -> Static Resources. You're inserting it as a Document object currently :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .