Questions tagged [static-resources]

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Address Auto Complete Not Working from Static Resource

I'm attempting to demo an "address type-ahead" API into a lightning component. For a standard HTML page with js/css, the integration should be as simple as including the js/css files and ...
0
votes
0answers
7 views

Unable to refer image from zipped static resource in a Salesfroce Formula field

I have researched about this and tried different ways suggested like in the below discussions: Formula Field - Image from zipped static resource Static resource image in formula field but I failed in ...
1
vote
1answer
18 views

Scoped imports are not allowed when runtime namespace is specified

I'm trying to load a static resource file in lightning web component which is running under vlocity_ins runtime. I'm getting the error Scoped imports are not allowed when runtime namespace is ...
0
votes
0answers
21 views

Enable Secure Static Resources for Lightning Components- Release Update

I have a task to complete my analysis and testing of this release update, Currently I am in confusion with the description, Can anyone explain what changes will be occurred after enabling this release ...
0
votes
1answer
19 views

Is It More Inefficient To Serve A Zip File From Static Resouces vs Individual File?

If I have a zip file of javascript files and I have uploaded into static resources. I reference a particular file inside my zip file in my VF page as follows: <script src="{!URLFOR($Resource....
0
votes
1answer
17 views

Unable to display static text from static resource in LWC

I am trying to retreive the text in LWC from a text file which I uploaded on static resource. import textfromStatic from '@salesforce/resourceUrl/Level_1'; textfromStatic = textfromStatic; ...
0
votes
1answer
34 views

How to access browser's “window” object in Aura component

I have third party JS file that I have imported in Salesforce as Static Resource Structure of static resource: myuploadzip.zip ----myuploadzip.JS I have imported the same in Aura Application as below:...
1
vote
1answer
42 views

System.SObjectException: ORA-20001 when deploying Changeset for users

I'm deploying an apex class and Test class which is running successfully and covering 84% test coverage in sandbox however when deploying it in Prod, I'm running in to below issue. I have included ...
0
votes
0answers
30 views
+50

migrating rtaImage of knowledge article in Salesforce

I am migrating knowledge article data from one salesforce environment to another using Informatica. so far we are able to locate the payload that we are planning to migrate. We use content payload ...
5
votes
0answers
56 views

Will salesforce continue to support bringing in third party js inside lwc or not?

We have some lwc components in our app, that took advantage of bringing in third party code (in our case, jQuery, angularJs etc. We did that to bring in some legacy code inside lwc. The code was ...
0
votes
0answers
12 views

How Can I Reference A Font File In CSS For My Visualforce Page through Static Resources?

I have a .css file that I have zipped along with image assets and font assets. On the front end through my Visualforce page I am bringing this css file in as an <apex: stylesheet> Here's what I ...
0
votes
0answers
18 views

Issue integrating Recurly with Salesforce using Aura/Lightning Framewrok

I'm building a payment screen using Lightning Components. For this I need to use the Recurly.JS Framework to invoke a few functions that will allow the org to integrate Salesforce with Recurly. I have ...
0
votes
1answer
22 views

Get the eng version of toLabel field value from SOQL

I have a field in soql which I have marked as tolabel(), the reason is to get the field value translated for the login user. But the same field value name is used in static resource to display the img....
1
vote
1answer
54 views

List of Salesforce objects those are File types like Document, StaticResource, Contents etc [closed]

I would like to know the list of Salesforce objects whose are based of FILE type. For example Document, Attachments, ContentVersions, Static Resources etc I would like to see what more objects comes ...
0
votes
1answer
28 views

How can I avoid error “sObject type 'StaticResource' is not supported.” in the Post Install script?

I am sampling data inside the Package Post Install script from a Static Resource, but script fails with an error: Error Message: common.apex.runtime.impl.ExecutionException: sObject type '...
0
votes
1answer
13 views

How to add these js files that another js file depends on for my Visualforce page?

I'd like to use a JS tool, but it needs some additional files. The readme says I Should add a few files to the server. I tried by adding it in static resources and modifying part of the js tool so it ...
0
votes
0answers
27 views

Difference in loading css from static resource and using css inside folder structure in LWC

I am trying to use the below custom datatable where we can add picklist https://live.playg.app/play/picklist-in-lightning-datatable In this all the css has been added to static resource and it is used ...
0
votes
1answer
31 views

Hide Standard Page Header

I know this question is duplicate of the following: Hide Standard Page Header in Custom Lightning App page. The problem is that the solution of creating a static resource and using it in the LWC ...
0
votes
0answers
65 views

LWC JS loadScript

I am trying to load this JS script: http://cdn.tagcommander.com/3468/tc_ENGIE_iframe.js So I downloaded it as static resource and use loadScript in LWC: import { loadScript } from "lightning/...
1
vote
1answer
79 views

loadScript fails in Community: Failed to load resource: the server responded with a status of 503 (Service Unavailable)

I am loading a JS file in a LWC with: import { loadScript } from "lightning/platformResourceLoader"; connectedCallback() { loadScript(this, "/resource/simpleTest") .then(...
4
votes
1answer
103 views

Make Visualforce variable in Javascript pass Security Review

The following Javascript is embedded into a Visualforce page because it relies on Visualforce variables: <apex:page controller="myController" > <script> var foo1 =...
6
votes
1answer
158 views

Package review fails with new undocumented issues

My Managed package (yearly) Security Review failed with new issues I was not aware of and which I could not find documented anywhere, E.g.: Stored XSS - "Avoid using escape=false unless ...
0
votes
1answer
30 views

Typing effect JavaScript not working with Visualforce page

I have a static resource JavaScript file that is referenced via <apex:includeScript> that displays a simple typing effect on the VF page however it is not working when previewed and displays as ...
0
votes
2answers
28 views

Using MultiStaticResourceCalloutMock [duplicate]

I am working on a class that makes a callout to a third party API. The third party API needs to be authenticated with a OpenID Connect Auth token. So, in my class, I am making a callout to the OpenID ...
3
votes
1answer
191 views

Embed HTML in LWC using iframe

We are developing an AppExchange app in which have an HTML file under static resources. Inside the LWC component, we need to display the content of this HTML file. We are currently using the tag and ...
1
vote
1answer
126 views

Importing third party JS in LWC is not working

I am trying to integrate tinyMCE editor with LWC. I have followed the below steps to do so; Download the tinyMCE resources and uploaded it as static resources in my org I am using the loadScript ...
0
votes
1answer
30 views

@wire and static resource JS library

Here's my problem; when i initiate my LWC sometimes it works fine....sometimes the static resource obviously doesn't load before the @wire fires off. @wire(fetchEvents, {usrId: '$userId'}) ...
0
votes
0answers
13 views

Pointing the YouTube Iframe API script to a locally available static resource

the Iframe api script tries to call-out to the widget api script to load it in. In the example available on the Salesforce Dev Blog, the author seems to have edited the callout to point locally. Here ...
3
votes
1answer
217 views

How can I force a static resource to reload in a Community site?

I have a static resource bundle (MIME Type: application/x-zip-compressed) which contains my .css and .js files. I have noticed that when I upload a new version of the static resource it can take a ...
9
votes
0answers
161 views

Font Awesome fonts are not being loaded after “Enable Secure Static Resources” activated for testing

Recently I have encountered the feature "Enable Secure Static Resources" on the release update (that was already being postponed as I am writing this) and read this question talking about it ...
0
votes
0answers
34 views

Static resource is not uploading files

We have multiple post-deployment steps and Data uploading is one of the post-deployment steps. We have created an automation script to upload the data file from the static resources. We have Company ...
16
votes
0answers
1k views

What is the impact of the Release Update: “Enable Secure Static Resources for Lightning Components”? (due 2020-11-29)

On the Release Update page in the setup (/lightning/setup/ReleaseUpdates/home) I found this Enable Secure Static Resources for Lightning Components COMPLETE STEPS BY: 29.11.2020 TEST RUN SUPPORTED To ...
3
votes
1answer
239 views

Using third party javascript library in LWC without a static resource

My question is similar to this. It seems we need to upload the Javascript library as a static resource before we can use it in LWC. I've got a payment gateway JS library which I need to use via CDN ...
1
vote
1answer
97 views

How to write to static resource (text file) in Managed package

How to write to a static resource (text file) in a Managed package In my developer org, I can read and write a static resource file by a visualforce page. I make a managed package of them, then ...
0
votes
1answer
181 views

Image stored in Static resource not getting displayed in lightning component

I have a lightning component that shows the image of a car from the static resource. I have uploaded this zip file which contains images of cars as a Static resource. following is the code of the ...
0
votes
0answers
19 views

Include managed static resource in Vf page [duplicate]

I have installed a managed package that has some static resources along with other features. I want to include a static resource to my vf page, but i get an error message: "Error: Field $...
0
votes
0answers
60 views

SFDX Source retrieve duplicating folder this happen only in static resources folder

In staticresources folder, i have Theme folder force-app/main/default/staticresources/test_Theme/css/style.css If i try to retreive style.css file, this file will replace to what's inside test_Theme....
1
vote
1answer
36 views

What is the best method to display images on a VisualForce page?

Is it still best to use Static Resources to zip up images to use in a VisualForce page (or elsewhere)? We basically display a table on the page with a small image (a company logo) in each row. ...
2
votes
1answer
61 views

Static Resource in VisualForce Page

I am using google Re captcha in my Visual force Page as below <apex:page sidebar="false" showHeader="false"> <apex:slds /> <html> <head&...
0
votes
0answers
60 views

Inactive page for community won't display static resources

I am developing a VisualForce page using the below css and html. While I've double and triple checked that the resources are in the org, public, and properly referenced, when I deactivate the org ...
0
votes
2answers
268 views

LWC loadScript of Static Resource works on Local Development Server but not when deployed to Sandbox

I used FullCalendar package to develop a rather simple LWC which includes a single DIV where the package dynamically loads it's elements. <div id="calendar" lwc:dom="manual" ...
3
votes
1answer
56 views

Can I import javascript from outside of my managed package into a LWC in my package?

In our managed package, we have a particular page where we have some default javascript that runs some calculations on some fields as you type and I am in the process of converting this page to LWCs. ...
0
votes
1answer
138 views

How to get a static resource URL to work in a Community without a gack?

I have a static resource that opens fine using this URL from the normal Salesforce desktop where the domain is https://flow-flow-3628-dev-ed.lightning.force.com): /resource/1594633705000/...
0
votes
0answers
70 views

Problem with custom font in Visualforce Page

I am trying to apply a custom font to my visualforce page. I followed the steps laid out in Use Custom Fonts . I have no idea what's wrong. Here's my css definition: @font-face { font-family: ...
0
votes
1answer
62 views

how to set component attribute value in static resource css

problem : I have to set values of css dynamically . I upload css file in static resource css is like : p { font-size : {v.font_size} } component : <aura:attribute name="font_size&...
0
votes
0answers
119 views

Issue with load Static Resource to Aura component

I have a folder that I compressed to ZIP and I want to import it to my aura component, but the "afterScriptLoaded" is never call. <aura:component implements="force:appHostable,...
0
votes
0answers
23 views

Document/Static Resource URLS in Email Templates in Source Control

Let's say that I have a Document or a Static Resource which stores an image that I use in an email template. The .email file within my project directory will have something that looks like this: <...
1
vote
1answer
568 views

LWC: Issue with loading static resources

I've incorporated the code documented in the following article into a new component: Play YouTube Videos Through Lightning Web Components It seems like the two JS files referenced, iframe_api.js and ...
3
votes
1answer
54 views

SRC reference inside lightning components

Here is the css reference, I have uploaded the font to the static resource, the source org showing up the correct font face but once I package the app (yes I included the static resource) to the ...
17
votes
7answers
1k views

Custom Metadata vs. Custom Objects in Managed Package

I worked on Managed packages for nearly 10 years now and never missed Custom Metadata Types. Not before they came and not after they were announced. I didn't come across a single great and technical ...

1
2 3 4 5
8