You need to sign in to do that
Don't have an account?
Genesis Yau
Is it possible to use a static resource containing an array of strings in a Visualforce page?
I want to write a JQuery function that requires a list of strings like:
I tried creating a static resource containing the exact same content above and tried to get its content by writing:
[ "string1", "string2", "string3", "string4" ]Since the list is quite long, I was wondering if I could just add a static resource on Salesforce containing the array and then retrieve it from my JQuery code.
I tried creating a static resource containing the exact same content above and tried to get its content by writing:
var testList = "{!URLFOR($Resource.testList)}"; console.log(testList);However, the browser console only shows the URL
/test/resource/*****************/testCList
All Answers
/test/resource/*****************/testList