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.

Filter by
Sorted by
Tagged with
5 votes
1 answer
90 views

Lightning Out : getting "No 'Access-Control-Allow-Origin' header is present on the requested resource" from Heroku App

---------- THE EXPLANATION ---------- I need to use my LWC's in an External Site. For it I use Lightning Out, and I want to test it with Heroku App. I have built a simple Aura Application according to ...
user avatar
0 votes
0 answers
53 views

Handle LWC event in Visual force page

I have overridden Standard "convert Lead" button with a Visual force page. LWC component is inside Visual force page using Lightning out. When I click Cancel button in LWC component, I want ...
user avatar
0 votes
1 answer
30 views

Embed LWC row buttons in Visualforce? Actionfunction oncomplete not working

I need to embed an LWC stateful button component in the rows of VisualForce output that appear after being refreshed from an apex:actionfunction call to an Apex custom set controller. The purpose is ...
user avatar
  • 322
1 vote
0 answers
35 views

LWC Application not running outside of salesforce [duplicate]

Hi I'm new to salesforce, I have one requirement to use my LWC Component outside salesforce, I have searched in google is there any possible way, finally I found one approach to use Lightning out ...
user avatar
4 votes
0 answers
130 views

reCaptacha in iFrame LWC Lightning Out - external website

I am trying to use reCapatcha in LWC using iframe, it works fine on the lightning record page, however the same component I am using on an external website using lightning out. The iframe is refuse to ...
user avatar
  • 1,393
1 vote
1 answer
409 views

Lightning out in external site as guest

I am trying to build a simple lightning out on my local host which should be available for guests. I have several issues: I assume that the user does not need to do any log in of any kind because i ...
user avatar
  • 69
0 votes
0 answers
127 views

Is there a way to prevent losing unsaved changes on LWC component inside a VF Page lightning out?

There is a lightning:unsavedChanges component which should prevent from navigating away from a page with a component having unsaved changes. However, this component doesn't work when an Aura component ...
user avatar
  • 13.3k
1 vote
1 answer
196 views

How to check if LWC component is available for Lightning out

I have several components which have complex logic (Platforn events , Message service) How to check if LWC component/module is available for Lightning out and will work there ? Any help will be ...
user avatar
2 votes
1 answer
55 views

Using several LWC's in another system using Lightning out

I have a managed package with a custom lightning page and several LWC's placed on it. And I need to know Do we have the possibility to place this lightning page using "lightning out" into ...
user avatar
2 votes
2 answers
538 views

"LIGHTNING OUT" is not working on Visualforce page set as "Inactive Site Home Page" when community is inactive

I've got the requirement to prepare a page that will be displayed to users when the Community is inactive. I prepared a Visualforce page and set this as "Inactive Site Home Page" in the ...
user avatar
  • 351
0 votes
1 answer
2k views

This page has an error. You might just need to refresh it

I am trying to put a flow in a lwc using this. However when I put this flow on external website using lightning out the flow works fine for the first two screen but throws This page has an error. You ...
user avatar
1 vote
0 answers
188 views

Lightning out App error in callback function From VF page

When trying to access my VF page I am facing the following error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://mydomain-dev-ed-dev-ed.lightning.force.com') ...
user avatar
7 votes
3 answers
1k views

How to subscribe to events from LWC embedded in Visualforce

I have an LWC which subscribes and display a custom Platform Event import { LightningElement } from 'lwc'; import { subscribe, unsubscribe, onError } from 'lightning/empApi'; export default class ...
user avatar
2 votes
0 answers
2k views

Get field Label in LWC for custom Object in Lightning Out for Managed Package

I have a component where I need to get field Label. import { LightningElement, wire, api, track } from 'lwc'; import CUSTOM_OBJECT from '@salesforce/schema/CUSTOM_OBJECT__c'; import { getObjectInfo } ...
user avatar
  • 3,299
2 votes
0 answers
439 views

Lookup search modal not working for lightning-input-field component in lightning out for LWC

As visible in the screenshot below, The lightning-input-field component along with lightning-record-edit-form is used to generate this view. LWC is embedded inside the Visualforce page using the ...
user avatar
1 vote
0 answers
75 views

Lightning Out gives 404 erors for LWC files

I am using Lightning Out to embed a component into my NodeJS web-application. I use JWT+Connected App to authenticate users. I am able to pass different usernames and log in under different users. I ...
user avatar
1 vote
2 answers
1k views

Can any LWC be hosted in any external website without a user logging in?

I see a lot online about Lightning Out, Embedded Service, and other things, but can't get a clear answer on this and I'm not a web developer so a lot of it is opaque. Can any LWC be hosted on any ...
user avatar
  • 648
1 vote
0 answers
29 views

Can LWCs be used in Mobile SDK Hybrid Local Apps?

I see that as of v8.2, the Mobile SDK can use LWCs in Hybrid Apps. But looking closer, it looks like they can only be used in Hybrid Remote Apps and note Hybrid Local apps. Our current app is a hybrid ...
user avatar
  • 617
1 vote
1 answer
106 views

Avoid errors in standard Salesforce delegate.js file when opening packaged lwc inside VF page in subscriber org without My Domain feature enabled?

I have build functionality for my client using the latest LWC framework and shipped that functionality as Managed Package (2GMP). Unfortunately, the client doesn't have MyDomain feature enabled so my ...
user avatar
  • 13.3k
1 vote
1 answer
225 views

Lightning Out/Appointment Scheduling CORB issue

I have an FSL scheduling flow that is on a public community page, and am trying to expose it on an external site via lightning out (https://help.salesforce.com/articleView?id=ls_expose_flow_on_website....
user avatar
0 votes
2 answers
547 views

Salesforce Classic + LWC inside Visualforce + Platform Events?

A new component I'm building uses Platform Events to communicate async server-side changes to the front end. This works great in LWC in Lightning Experience using empApi, but empApi isn't supported ...
user avatar
1 vote
2 answers
671 views

Flow exposed in external website using Lightning out - Not Rendering, no error

What I did Aura Component <aura:component> <lightning:flow aura:id="flowData"/> </aura:component> Controller ({ init: function (component, event, helper) { ...
user avatar
  • 232
1 vote
0 answers
391 views

Creating a basic Lightning App that will display an Einstein Analytics Dashboard using Lightning Out

I'm trying to create a basic Lightning App that will display a Dashboard from Einstein Analytics. Here's the code that I'm using. CMP <aura:component access="global" > <wave:...
user avatar
1 vote
1 answer
809 views

Load time of '<lightning-input-field>' of LWC is much higher than '<apex:inputfield>' of VF page

I am trying to create an LWC which is similar to a VF page. I have inserted the LWC on the VF page using lightning out. The VF page uses <apex:inputfield> to take input from the user in a ...
user avatar
  • 1,014
1 vote
1 answer
383 views

Unable to fire toast events and apex controller methods from a lightning component called from a visualforce page through ltng:outApp

I am stuck with a simple requirement that turned complex altogether. I simply had to get rid of a javascript button to make it lightning compatible. I decided to create a lightning component and ...
user avatar
0 votes
1 answer
176 views

Authentication in Lightning Out by passing Session Id

In below VF page <apex:page showHeader="false" sidebar="false" cache="false" standardStylesheets="false"> <apex:includeLightning /> &...
user avatar
  • 1
1 vote
1 answer
55 views

Salesforce Custom label for lightning component does not kick off localization

We have managed package with lightning component hosted in VF page via lightning out .Localization does not kick off for non-english user .This works perfectly fine in scratch org but not with the ...
user avatar
3 votes
1 answer
270 views

'No component definition' warning for LWC even though I defined the component on VF page (Lightning Out)

I am using Lightning out to display LWC on VF page. I have included the definition of LWC on the VF page. Even then, my LWC loads very slowly on the VF page and I get the following warning in the ...
user avatar
  • 1,014
0 votes
1 answer
44 views

How to destroy LightningOutApp

Can anyone please help me. I have implemented the LightningOut using visual force page to call a lightning component. When I am trying to destroy the lightning component using destroy() which is ...
user avatar
0 votes
0 answers
52 views

How do I expose a standard ui layout page as an externally facing website?

I am planning on adding a few custom objects and require a page to be exposed publicly. I have looked at both visualforce and lightning out, but am confused about the best practices. Can I expose a ...
user avatar
  • 287
0 votes
1 answer
570 views

$lightning.createcomponent callback function return before component setCallback

Lightning App: NewOppLEXApp <aura:application extends="ltng:outApp" access="GLOBAL"> <aura:dependency resource="c:OpportunityLEX" /> </aura:application&...
user avatar
4 votes
2 answers
563 views

Externally hosted Javascript is unable to access Visualforce page

From my Visualforce page I am calling an externally hosted Javascript app: <apex:page> <apex:iframe src="https://external.com/index.html" id="theFrame" /> </apex:...
user avatar
3 votes
0 answers
454 views

Redirect from LWC embedded via Visualforce in Page Layout fails

I have an LWC component that needs to log in via an OAuth flow before it can be used. If unauthenticated the component first redirects to an external Login page after the user clocks a button. <...
user avatar
0 votes
2 answers
692 views

Authenticated Lightning Out with another Salesforce Org

Immediate Question: Is there a way to use authenticated Lightning Out with another Salesforce Org? We've currently got two Salesforce Orgs: Org A and Org B In Org A, we've created a flow that allows ...
user avatar
  • 1,069
0 votes
1 answer
151 views

Close an public visualforce page that using Lightning Out App

I have a visualforce page that using Lightning Out App to show aura component to Non Authentication user. And when I click the button to save record on Aura Component and the result return ...
user avatar
0 votes
1 answer
23 views

Web Component - Lighting Out - Load a page

I have a new lightning challenge to solve. For a project we built a lightning web component, and we exposed it to an external portal through lightning out. One of the requirement is to be able to load ...
user avatar
0 votes
1 answer
178 views

Lightning out error - "Unable to read the Aura token from the response"

I'm currently working on a LWC embbeded in Aura with Lightning out and my component is on error since this morning with Uncaught Error: Unable to read the Aura token from the response. The connection ...
user avatar
  • 341
0 votes
2 answers
1k views

Embedded Service: Problem with Multiple Components on a Web Page with Lightning Out

We are using a lightning app with embedded service. we used the instructions given here. The chat button appears on the page but we keep getting this error: { component: "markup://...
user avatar
  • 83
0 votes
0 answers
59 views

Lightning Out and instance URL

I have an external JS app that uses oAuth (JWT flow) to authorize itself to Salesforce. After the authorization step, my external app loads a Lightning Out component. The response from SF oAuth token ...
user avatar
0 votes
1 answer
133 views

Lightning out with error 500 on NodeJS server

I'm tring to outsource my aura component with lightning out using a connected app but I have a 500 error. (I have no problem connecting with the user/password/token mode). CORS are well set (localhost:...
user avatar
  • 341
0 votes
1 answer
501 views

Pubsub event communication between sibling components inside visualforce page

I have 2 sibling components inside a visualforce page. When i try to write pubsub events in the LWC components i am getting the below error This page has an error. You might just need to refresh it. ...
user avatar
  • 121
0 votes
0 answers
334 views

LWC template doesn't hide despite if:true being false

I have a conditionally rendered SLDS toast as follows : <template if:true={documentsMissing}> <div class="demo-only" style="height:4rem"> <div class="slds-...
user avatar
  • 155
0 votes
2 answers
2k views

Displaying picklist in html table is not working properly in LWC using lightning out

I am not using lightning data table as I need to display input and output fields together on the page users don't want to use inline edit of lighting data table. UPDATE: This problem is coming ...
user avatar
  • 2,245
0 votes
1 answer
182 views

Lightning Out --- How to go around session persistence

We currently have an LWC component. It is targeted to be used in 3rd party sites. The best way to do this is via Lightning Out. We therefore created a lightning out application, it is currently ...
user avatar
  • 720
0 votes
0 answers
663 views

lightning:inputfield - lookup field not working in Lightning Out - Salesforce1

I had a requirement, where I have to create a basic form so that users can have the functionality to create contact at the List view using a custom button. I have created a Aura Component and used ...
user avatar
1 vote
0 answers
302 views

Lightning Out Flow

I am trying to Render Lightning Flow Runtime in a Visualforce Page. Lightning out app Code: Visual Force Page Code: var ...
user avatar
  • 45
0 votes
0 answers
363 views

Making <lightning-helptext> work without slds-scope on body tag

We have chosen not to apply slds-scope to the body tag of our Visualforce application, because it results in some undesirable behavioral artifacts in our legacy application. Everything pretty much ...
user avatar
1 vote
0 answers
273 views

Catching and relaying show toast event

We want to use Lightning toasts from Lightning Out. We want to do this using the standard new ShowToastEvent approach, so our components will work identically either in Lightning Experience or ...
user avatar
3 votes
0 answers
87 views

Unable to get Lightning application event in scratch org of SFDX project with namespace specified

I tried to use an application event in visualforce page using lighting out on my scratch org with namespace. But I was not able to get the app event in aura component. I wrote following Aura ...
user avatar
2 votes
0 answers
751 views

Lightning Flow Display text does not render HTML inside lightning out app

I have a flow that is using a simple DisplayText element on the Screen. It just displays Hello world (yes, I formatted it to be bold). I edited the record detail page and added this flow to the page. ...
user avatar
  • 103