Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-out]

Lightning Out is a feature that allows Lightning Components to be used in pages that are run from non-Salesforce servers allowing components to be added to external apps. A JavaScript library is included in the page on the origin server. Markup is added to configure & activate the Lightning components app. Lightning Out pulls the components app into the page over a secure connection & inserts it into the DOM of the page.

0
votes
0answers
7 views

Workaround/solution to use workspace API in a lightning component(component is inside a vf page)

As list view buttons are not able to open lightning components directly, I used a vf page to show lightning component using lightning out. Now I need to use workspace API to effectively navigate and ...
0
votes
0answers
23 views

Lightning out in react-native app webview

I am trying to load lightning pages in react-native app webview throught lightningout.js and getting the below error Access to XMLHttpRequest at 'https://company.lightning.force.com/c/PP_Mobile....
1
vote
0answers
31 views

I'm not able to access DOM element even in “afterRender”

I'm trying to create a canvas in my custom lightning component. This is a child component of another component. The canvas draws few charts, and the methods are called only after both the script(...
0
votes
0answers
21 views

lightning out not working with login flow

I've a login flow which uses flow and lightning component to present few screens. Issue with flow screens is these screens are not wide enough. I tried to use login flow with VF to get better control ...
1
vote
0answers
27 views

Unable to use UI Theme functions in Lightning Out App

first time working with a Lightning Web Component and Lightning Out so this may be a fairly simple question. We're still using Salesforce Classic so I need to be able to use navigation methods which ...
0
votes
1answer
44 views

Look up field not showing results - Lightning Component via Lightninh Out

I built a form using Lightning Universal Lookup Component - Managed Package. I'm using it in two different fields, here is the first field where it's working perfectly. This is the markup for that ...
0
votes
2answers
85 views

Error when trying to show Toast from lightning out through Site

I get this error on the bottom of the page when trying to show a toast message This page has an error. You might just need to refresh it. Error in $A.getCallback() [$A.getEvt(...) is undefined] ...
0
votes
0answers
101 views

Is there a way to use lightning:fileUpload from a Visualforce Page?

I need to call a Lightning component which uses lightning:fileUpload to upload multiple files from a Visualforce Page. But for calling a Lightning component from a Visualforce Page, I need to use a ...
1
vote
1answer
209 views

Lightning Out: CORS error even after whitelisting force.com site

I have a force.com site. I access one visualforce page from this site. On this vf page is a lightning-out application. All of the lightning-out requirements to run on a vf page has been set: ...
1
vote
1answer
20 views

Lightning out - How to catch errors from the embedded component

I have a lightning out application. I can easily catch backend errors and show it in the front-end via alerts or toasts. However, I wanted the host application to have a way to capture the error ...
0
votes
0answers
75 views

Lightning component in VF page: API call promises never fire

I have a VF page which loads a Lightning Component that in turn makes an API call (workspaceAPI.isConsoleNavigation). The client controller invokes the API call, but the promise returned never fires. ...
1
vote
2answers
622 views

How to close sub tab from lightning component button click

I have a vf page in which I have embedded a lightning component ( lightning out ). I'm having a lightning button called "Save". On clicking this, I need to close the sub tab ( currently I'm displaying ...
1
vote
0answers
57 views

Alternative to lightning:overlayLibrary in LightningOut

I have a Visualforce page which loads a Lightning Aura Component using LightningOut. The Lightning component uses a <lightning:overlayLibrary component, which is not supported in LightningOut. ...
0
votes
1answer
625 views

Error in $A.getCallback() [Cannot read property 'fire' of undefined] failed: $A.get('e.force:refreshView').fire();

Background I have a Visualforce page which loads a Lightning Aura Component using LightningOut. When the Lightning component executes this line: $A.get('e.force:refreshView').fire(); I get this ...
0
votes
1answer
140 views

Lightning components not added as dependency in lightning out app are visible to external app

I'm working on lightning out app to authenticate and expose few lightning components for an external node app. OAuth Access Token is used to authenticate user. It seems to be working fine just that ...
3
votes
1answer
336 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
0
votes
0answers
42 views

Unable to get lightning look and feel for site users

I am using lightning Page in VF using lightning out.The page is added to sites.But when I open the page via link, It shows the components but Look and feel is not of lightning.
1
vote
2answers
126 views

Reuse Classic Apex Controller for Lightning conversion

We have a very large, complex Visualforce page with a very large, complex extension. We have been asked to convert a portion of the functionality to Lightning (using Lightning Out on the VF page). Is ...
0
votes
0answers
18 views

In LightningOut, firing an event multiple times from the VF page javascript to LightningOut component gives Event error [duplicate]

I've seen several questions regarding this issue, but none of the answers work in LightningOut. When an event is fired from the VF page's javascript (VF page event to Lightning Component), it gives an ...
1
vote
2answers
409 views

Community user cannot download file

I am using an old portal for my customers, with customer community user licenses. In the portal, my users should upload files and then download the files that they have uploaded. The portal is ...
5
votes
1answer
620 views

Unable to subscribe to Platform Event Notifications in a Lightning Component via Lightning Out

The ultimate objective is to detect if a visualforce page (or the lightning component embedded within it) is already being viewed/used by a user when someone else opens it and subsequently restrict ...
1
vote
1answer
130 views

“afterRender threw an error in 'lightning:clickToDial' [a.replace is not a function]” when dynamically displaying lightning:clickToDial

I have a VisualForce page with a script to dynamically display a lightning:clickToDial component. However, when the page is loaded I receive the following error message: This page has an error. ...
-1
votes
1answer
75 views

recordEditFrom - Address Field is disabled in Site as a Guest

When using Lightning Out and recordEditForm, the Mailing Address fields on Contact object is disabled even though the permissions are set on the Guest Profile. All other fields are fine. Manually ...
0
votes
2answers
274 views

Getting error while passing list from visualforce page to lightning component

I have a button "Manage RA" in Lightning Listview of a custom object which uses Visualforce page and Lightning:out to invoke the lightning component. When a user selects any of the records from the ...
13
votes
1answer
334 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
1
vote
0answers
47 views

Html not rendering for lightning out rich text field in visualforce

We have implemented knowledge in our org, and generally use an employee community to interface it. However, when not using the community we render the articles in a visualforce page that is ...
2
votes
1answer
78 views

Lightning out event override failing in Summer '18 (except in debug mode…?)

I built a lightning component to be used in a Visualforce page using Lightning Out, which works fine in my development environment, which is in Spring '18. However, when I pushed it to another ...
1
vote
0answers
164 views

Lightning Out Content Security Policy

I'm trying to use Lightning Out. It's running from within an iFrame, but I'm getting this error. Refused to load the script 'https://XXX.my.salesforce.com/lightning/lightning.out.js' because it ...
4
votes
3answers
376 views

Lightning Icons (SVG) not displaying in Lightning Out

For some reason lightning:icon is not displaying the svg in Lightning Out. I tried also lightning:buttonIcon and lightning:button with icon. Here is my ActivityTimeline (custom component) which uses ...
2
votes
1answer
1k views

lightning:inputfield - lookup fields in Lightning Experience, Salesforce Mobile App and Lightning Out

I’ve been experimenting with the new lightning:inputfield and it seems that the lookup fields don’t work in the mobile app or in Lightning Components which have been embedded in VF pages. Can people ...
7
votes
1answer
264 views

Unstyled Flows in Lightning Out

I have a static site, hosted in a AWS S3 bucket. The static site uses Lightning Out to load a component that contains a flow. I have included the SLDS stylesheet in the static site, and have ...
4
votes
0answers
288 views

SLDS not applied to flow when used in Lightning Out

I have a Lightning Out app, hosted in a S3 bucket, that launches a flow. Everything works and is styled as it should be until the flow is launched. The input styles revert back to "normal", the date ...
3
votes
1answer
393 views

Lightning Out SLDS Weirdness

I am trying to load a lightning out app in a static site hosted via an S3 bucket. I started with a lightning app that extends ltng:outApp and it describes a single component as a dependency. The app ...
1
vote
0answers
86 views

Lightning Data Service support in Lightning Out

I am currently working on developing a new Lightning application and wanted to use Lightning Data Service. However I see from the Dev Guide (https://developer.salesforce.com/docs/atlas.en-us.210.0....
1
vote
0answers
91 views

Cross Origin Frame Error in a visualforce page using Lightning Out

I have a lightning component which uses external libraries like d3.js and jquery. I have to use this this component in a lightning page as well as show it on the record detail page of a custom object. ...
1
vote
0answers
430 views

Lightning out : Access-Control-Allow-Origin error // CORS added

We want to add a Lightning component to an external page. OAuth token is working, and the page's URL is added to the CORS list. However, we are still getting an error: "No 'Access-Control-Allow-...
3
votes
2answers
2k views

lightning:helptext not working in Lightning Out

I'm having issues rendering the lightning:helptext component with Lightning Out. Here's the code that will reproduce the issue: TestOut.page <apex:page showHeader="false" sidebar="false"> &...
0
votes
0answers
386 views

Is lightning:recordViewForm supported in Lightning Out?

In the documentation for lightning:recordViewForm it explicitly states that it does not use Lightning Data Service. Also, nowhere in the documentation does it say that the record view form is only ...
2
votes
0answers
51 views

Elegant exception handling in ltng:outAppUnstyled

I am using ltng:outAppUnstyled to create re-usable bi-style (LEX and Classic) components. However whenever some sort of exception occurs, it just gets appended the the bottom of app body: <div ...
2
votes
0answers
302 views

Intermittent Lightning out CORS issue with external site

I'm running into a CORS issue with a lightning out component running on an external website where Salesforce appears to be redirecting to the visualforce domain to load lightning out and not ...
0
votes
1answer
248 views

Lightning Out / Visualforce Pass sObject from Visualforce to Javascript Controller

I'm adding a lightning out component to a pre-existing visualforce page. I can pass the values from the sObject bound in the Visualforce page to my Lightning Component by passing these as separate ...
0
votes
1answer
68 views

Lightning Out fails to load due to app endpoint responding with relative url scripts [closed]

I am loading a component from an external page, but when it calls the appname.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT URL in the host org, it responds with a "scripts" field that ...
5
votes
0answers
264 views

Detect if Lightning component is used in Lightning Out

Is there a way to detect the context of where component is used? For example to find if it's LEX, community, app, Lightning Out or Lightning Out Unstyled. I was thinking something like using $A....
1
vote
1answer
303 views

lightning:openFiles in classic

I've my list of files in a Lightning component, and I'm using - lightning:openFiles (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_lightning_openFiles.htm) to view the ...
3
votes
1answer
523 views

Cannot Load Lightning Out in Firefox

I have run into a large blocker regarding the use of Lightning Out to inject a Lightning component into a Visualforce page. I have used the method outlined in the documentation here in order to load a ...
2
votes
0answers
160 views

Specifying the DOM parent element of an Aura component

Using Lightning Out, createComponent takes a domLocator parameter that specifies where in the DOM to insert the component. I was wondering if there is was a way to do this in Aura apps without ...
3
votes
0answers
355 views

No navigation for sforce.one.navigateToURL from vfpage lightning out in a community site

I have a lightning component developed to work both in lightning and in community pages(flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes) To work around LockerService ...
1
vote
0answers
29 views

Have built unauthenticated update-details pages for my Salesforce Contacts. Should I use them?

I'm looking for a means that Contacts in my database can easily update their own fields and child records on a highly customised interface. I believe the best and cheapest solution is to build an ...
8
votes
1answer
381 views

Navigation between component in lightning out

I'm trying to build an app with lightning out (in my case they are hosted in VF Pages) but I was wondering if there is a way to navigate from component to component like with $A.get("e.force:...
2
votes
1answer
317 views

Lightning URL button - detect reload and prevent action on reload

As a follow up to this question: Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component The solution does not work in lightning. The basics of what I am ...