Stack Exchange Network

Stack Exchange network consists of 174 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 ...

0
votes
0answers
10 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 ...
0
votes
0answers
20 views

How to destroy an previously created component in VF page that has Lightning Out? [duplicate]

Using Lightning Out, you can create a component. How can I destroy that component later before I create a new component in Lightning Out?
0
votes
0answers
12 views

Lightning:tabset rendering 1 of 2 tabs in “more” dropdown (only in classic)

I have implemented a lightning component that is exposed in a visualforce page through a lightning out app - completely 'by the book' stuff. In this component I have a tabset consisting of two tabs: &...
1
vote
2answers
59 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 ...
4
votes
1answer
119 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 ...
0
votes
0answers
38 views

How do I hide my Lightning Out app access token?

I am exposing a Lighting Out app via a Node.js application running on Heroku. To do so, I need to pass an access token into the $Lighting.use() method. My site visitors are not logging in themselves, ...
1
vote
1answer
22 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
38 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
36 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 ...
12
votes
0answers
299 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
33 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 ...
0
votes
0answers
58 views

lightning:buttonMenu in LightningOut within a form

The lightning:buttonMenu component does not allow the type attribute and I am using in within a component placed on a visualforce page using lightning out. This component is nested within an apex:...
2
votes
1answer
56 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
109 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 ...
2
votes
3answers
270 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
943 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
155 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
230 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
302 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
55 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
70 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
356 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
1answer
1k 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
368 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
42 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 ...
1
vote
0answers
236 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
169 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
51 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 ...
6
votes
0answers
173 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
243 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
388 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
116 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
307 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
27 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
315 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
242 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 ...
3
votes
2answers
482 views

Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component

Scenario: Using Lightning Out I have a VF page display a Lightning Component. The VF page passes values from URL parameters to the component attributes. If specific parameters are passed the ...
4
votes
0answers
286 views

Issue with lightning app when using lightning out

Hi guys I have made a nodejs app and want to expose my lightning app in it. The component seems to render but some functionality does not work in the dev console I am getting these errors: Access to ...
3
votes
1answer
752 views

{!$User.UIThemeDisplayed} not getting correct Theme in Lightning out

I am new to Lightning so it might be very foolish question. I have a Visualforce page with 2 buttons "Save" and "Cancel" and both has custom code which uses "PageReference" to navigate to other page. ...
7
votes
1answer
579 views

Lightning Out without “My Domain”

I'm using Lightning Out in order to render my Lightning Components inside a Visualforce page. <apex:page showHeader="true" sidebar="true"> <apex:includeLightning /> <div id="...
9
votes
1answer
382 views

Named Credentials in Lightning Component - Streaming API

Setup: Force.com site page Guest Users VF with Lightning Out Lightning component to subscribe to Push Topic Problem Guest User does not have a session ID so no way to set it here: $.cometd.init({ ...
0
votes
1answer
504 views

Lightning Out error with community user [duplicate]

I have a Visualforce page that has a Lightning Component being loaded with it (basically, the VF is a container for the Component). The code: <apex:page showHeader="true" sidebar="true"> &...
8
votes
1answer
2k views

No 'Access-Control-Allow-Origin' / Locker Service / ltng:require

Setup: Visualforce Page using lightning out <apex:page id="Js_Examples" standardStylesheets="false" showHeader="false" sideBar="false"> <apex:includeLightning/> <script> $...
7
votes
1answer
555 views

Do we need both an App and a Component for Lightning Out?

All of the examples for Lightning Out, such as Use Lightning Components in Visualforce Pages shows that we need an app and a component. Is there a way to use just an app or just a component? Ideally, ...
5
votes
1answer
419 views

window.opener.$A syntax gives - permission denied to access property “$A” error

Problem statement: When we try to access the 'window.opener.$A' property of lightning component present in the parent from a javascript snippet present in a child window (Visual force page) we get ...
1
vote
1answer
73 views

Exposing an <attribute type=MyCustom_Object__c /> in Lightning Out

We are using a Lightning Out and have a simple Input Box with a Button. The button when clicked, retrieves the value of the input box and inserts it in the MyCustom_Object__c. When the lightning ...
3
votes
1answer
666 views

forceChatter:feed & forceChatter:publisher components is not loading in VF page using lightning out

This is my feed component: <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" access="global"> <forceChatter:feed type="Record" subjectId="XYZ...."/> &...
1
vote
0answers
85 views

Lightning out app not loading files properly

I am using Lightning out in my html page that I am hosting on a node server. After successful authentication of the Lightning out app, the url - https://{domainname}--{sandboxname}.cs62.my....
3
votes
1answer
726 views

How to use Lightning out to show a Lightning app in html page?

I am trying to use Lightning out to show a lightning app in a html page. Following is the code snippet in my html page - $Lightning.use([AppName], function() { $Lightning.createComponent("[...
2
votes
0answers
177 views

Locker Service/Lightning Out Issue

I have a Managed Package Lightning Component being exposed to a non-Managed Package VF page via Lightning Out. With Locker Service enabled, I get the following errors for managed package static ...