Questions tagged [lwr]
The lwr tag has no usage guidance.
66
questions
0
votes
0
answers
26
views
Community site Lightning Web Runtime framework trying to render datasource value in HTML
Trying to renders a field as a picklist, with static values in the Community Page LWC, it shows as Undefined in JS when I try to print the value.
Below is the code, Can you please help me with what I ...
0
votes
0
answers
17
views
How to properly configure LWR networkbrand loginLogo from cms
Since we cannot configure the change password branding in the communities using the LWR template, I've found a work around to retrieve and deploy the metadata on this link:
https://ideas.salesforce....
0
votes
1
answer
28
views
Navigate to LWR Community Home Page
I have pretty simple Custom Modal LWC.
I want it to navigate to Customer Portal Home Page onclose of the modal.
Below is the code:
import LightningModal from 'lightning/modal';
import {NavigationMixin}...
0
votes
0
answers
34
views
Migration from Aura Site to LWR
We are migrating our Aura site to o LWR Site and we encountered some "porting" problems between the two sites.
Embedded chat is not supported on LWR
Topics and articles cannot be used as i ...
1
vote
0
answers
71
views
Accessing a Static Resource dynamically from a Lightning Web Runtime site
How can I access the contents of a static resource dynamically when running in an LWR site?
I have a JSON configuration file that I need to access from multiple components (including Visualforce, Aura ...
2
votes
1
answer
40
views
Using 3rd Party JS library in LWR Community
I need to use a 3rd patty JS library in my LWC component in a LWR community. Looks like platformResourceLoader is not working in LWR, so it's not possible to load script from static resources as ...
0
votes
0
answers
30
views
Video capture in LWR
We have developed some small LWC that start the device camera to take a picture.
It uses getUserMedia method in navigator.mediaDevices and works perfectly for internal users in Sales Cloud. When ...
0
votes
0
answers
37
views
Debug user movement on store to reproduce error on local environment?
I am in a situation where I am encountering an error on my sandbox environment, I know how to trigger it, but I don't know what is throwing that error.
Is possible to somehow log everything from when ...
0
votes
0
answers
70
views
Place Order Button is Disabled in B2B Commerce Checkout page after Winter 24 Release
We are setting a B2B commerce LWR digital experience site in the developer org. After winter 24 release, when we put "Place Order" button under Checkout Layout:
Accordion -> Checkout ...
0
votes
0
answers
35
views
Cannot deploy LWR Enhanced site to scratch org: site template requires a route of type service-not-available
I created a new digital community based on the B2B Commerce (LWR) template. When I deploy it to a scratch org using ExperienceBundle Metadata API, I get this error:
The current site template requires ...
0
votes
0
answers
45
views
When creating new site, b2b commerce lightning template gives error
I am trying to create a new site from all sites.
If I choose B2B Commerce (LWR) template, it gives me an error when site setup.
An unexpected error occurred. Try again or contact your Salesforce ...
0
votes
1
answer
37
views
LWC loses data returned from Apex method in LWR
I currently have an Community/Experience Cloud site that is built on LWR
I have an Apex method that is returning the results of a Product data in a ProductModel class
LoadProductConfig method
...
1
vote
1
answer
145
views
Receiving "LWR3008" error while accessing a LWC screen flow component in LWR sites
I am seeking assistance with an issue I've encountered. Within my current setup, I have an LWC component that functions as a screen component within a flow. This flow is called from another LWC ...
6
votes
1
answer
408
views
How to get Static Resource URLs dynamically in LWC that work in LWR sites
TL;DR
In case you aren't into reading walls of text, here's the question in a nutshell:
Is there an API in LWC that can get a static resource URL dynamically in an LWR site? Please note that, in LWR ...
0
votes
0
answers
60
views
Facing issue while installing and running LWR LWC OSS in my windows machine
I have installed LWC OSS from the official site https://lwc.dev/
Here is the steps I followed :
Made sure I have node and npm installed
Created a lwr project : npm init lwr@latest
Installed ...
2
votes
1
answer
226
views
Do LWR Digital Experiences support the audience mechanism?
Audiences allow Aura Digital Experiences to present alternate content - page variations - based on location or record or user or permission attributes.
The LWR Template Limitations do not say that LWR ...
0
votes
0
answers
107
views
B2B Template (LWR) - Custom Fonts
It is possible to use custom fonts on B2B using LWR Template?
My current configuration:
<style>
@font-face {
font-family: 'myFirstFont';
/* Replace myFont with your resource name */
...
0
votes
0
answers
131
views
Guide: Add custom font on experience(community) site using head markup in lightning builder (working 100%)
Question : how to import custom font in Lightning Experience Site?
Answer:
This has worked for me. (Tested). Following are the ways
Case 1 : when font file(.woff) is inside the zip(MyFont)
/* Font ...
0
votes
0
answers
131
views
B2B LWR: Phone number field in Shipping Address checkout form
In B2B LWR Checkout page there are 2 properties for Phone Number in the Shipping Address component configuration, plus there is a standard field for it in the ContactPointAddress object, PhoneNumber.
...
1
vote
3
answers
236
views
lightning__commerce_cartChanged channel is not updating the amount of cart items in the LWR site
I'm currently in progress with migrating from Aura B2B Store to LWR Site, custom components for adding products to cart publish messages to lightning__commerce_cartChanged channel as described here: ...
0
votes
0
answers
44
views
How to get xml properties chosen on child to pass to parent in LWR Experience Builder Site
I have a parent wrapper for two cards in my markup with the cards nested within the parent wrapper.
How would I be able to still click on the card to dynamically change the card details? With them ...
0
votes
2
answers
471
views
How to set custom sizing and padding to columns in Experience cloud with Build Your Own LWR theme
I am busy with a custom site that doesn't use any of the base Salesforce styling. I have written my own LWC's but I am having issues spacing them on the site.
The only option I have is to set global ...
0
votes
0
answers
98
views
Setting data in LWC lightning datatable isnt working
I have a lightning datatable
ecxTerritories.html
//random divs
<!-- this code below works
<div class="slds-col slds-size_1-of-1 slds-m-bottom_medium acc-info" lwc:if={...
0
votes
1
answer
78
views
Is it possible to run jQuery (3rd party library) from a LWC that is inserted into an LWR site?
There are many tutorials on adding 3rd party scripts in LWCs. I've tried adding this LWC in both the Salesforce dashboard and an Experience Cloud LWR site. It works on the dashboard, but breaks in ...
1
vote
1
answer
352
views
External Javascript library loads but does not work in Experience builder
I have a LWR experience cloud site with Lightning Web Security Enabled.
My site is a set of questions on multiple pages with a progress bar on the bottom.
The transition from one page to another is ...
-1
votes
2
answers
303
views
How to use "CMS Connect" in the LWR site?
We are currently using third-party system like WordPress to fetch content to our website portal. We have plans to move forward building our site using LWR. But I do not see Content Management shown up ...
1
vote
0
answers
71
views
How to override base web-to-lead component styling in LWR with a static resource stylesheet
I am using the lead form in the experience builder (With no theme), and I am trying to style it. However, I seem to be hitting a brick wall.
Here is my code:
Head Markup:
<link rel="stylesheet&...
0
votes
1
answer
239
views
How to change the css of a standard SF component in LWR site
I have been using an LWR site with no theme selected (Basically a blank theme).
I have used the web-to-lead markup in a custom LWC, but I need to change the styling of the form.
Is there a way to do ...
2
votes
1
answer
221
views
LWR Site (Build Your Own) - Issue accessing 3rd party library loaded from Static Resource that depend on the window global object
I have created a LWC component that loads a third party library from a static resource.
Here's an example of the library:
window.myLib = (function() {
return {
myFunction: function(a, b) {
...
0
votes
0
answers
115
views
Is it possible to have one content section overlap another in Experience Cloud Builder?
By default, there are three sections that come with the LWR site template.
Header - Content - Footer.
I am doing a simple landing page for a convention that has a quiz. There is no need for me to have ...
1
vote
1
answer
224
views
Routing error on NavigationMixin logout action
I am developing an Experience cloud site with an LWR template. I am trying to create a logout button using the standard code for it:
this[NavigationMixin.Navigate]({
type: "comm__loginPage&...
1
vote
2
answers
863
views
Supporting guest user file upload on an LWR Site (up to 20mb)
I'm trying to build a simple public-facing web form on an LWR Site. One key requirement is for users to be able to upload a file, but I'm facing some heavy obstacles:
lightning-file-upload is not ...
0
votes
0
answers
58
views
Experience Site Custom CSS: Target input states
I am customizing the styles of some standard components of a B2B LWR template experience site, for the inputs I am able to change the style simply by targeting the property part or class , for ...
0
votes
0
answers
95
views
LWR Community Custom Domain
We have created an LWR site in salesforce and also created a custom domain. Then we mapped the domain with my community URL but the builder is showing my domain with "//" in the "...
0
votes
0
answers
87
views
Call Aura from LWC event not working with LWR community
I am trying to dispatch event from lwc to listen in aura , inorder to implement google analytics. However aura is not able to catch event in the LWR community . however it works fine for Aura site
-1
votes
1
answer
223
views
Implement Google analytics in LWR community using lWC
Is it possible to track events using Google Analytics inside LWC in a Community? If so, how can I achieve it?
0
votes
1
answer
258
views
Update LWR site Head Markup with metatdata
Is there any option to deploy head markup of a LWR site with SFDX and metadata instead of modifying it manually in the Advanced section of the Experience Builder site settings (following these steps ...
1
vote
0
answers
375
views
Is it possible to deploy new pages to an enhanced lwr site with sfdx?
In my development org, I created a new page in my site using builder. I then retrieved the entire site with
sfdx force:source:retrieve -m DigitalExperienceConfig:SITE_NAME_HERE
which gave me the new ...
0
votes
1
answer
219
views
How to make patch request to /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId from my custom LWC checkout component on the new LWR TEMPLATE
Most of the user interaction on the checkout page in the new LWR template for B2B Commerce are making get or patch callouts to /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId to get data ...
0
votes
1
answer
310
views
LWR Site layout same header slot on every page
Based on the Build Your Own template I am trying to create a layout with a header slot and a body slot. But I want the header slot to contain the same components the user selected on EVERY PAGE. How ...
0
votes
1
answer
973
views
While trying to access CMS data using ConnectApi.ManagedContent throwing an error like 'You don't have access to this channel.'
While trying to access CMS data on LWR site(Not Aura) using an Apex class with ConnectApi.ManagedContent, throwing an error like 'You don't have access to this channel.'
Apex code:
String networkId = ...
1
vote
1
answer
546
views
How to Redirect LWR Digital Experience Users to SSO URL Using URL Redirects?
We have a LWR experience site that was created before winter'23, so /s prefix exists for most of our pages and our home page url is something like this: acme.customer.com/s/
We use Google as the auth. ...
1
vote
1
answer
252
views
Getting error while Installing LWR Application
I am trying to install the az-insurance app, and getting below error -
Error LWR_Demo_Marketing1 The value for urlPathPrefix in ExperienceBundle isn't valid. Check the value and try again.
I am ...
0
votes
1
answer
395
views
TypeError When Using LWCC Chart.Js in LWR Experience Cloud Site
Imported open-source LWCC Chart.js from Salesforce Labs and made no changes. Chart works fine in standard scratch org Lightning Page but when try same component in an LWR Experience Cloud site from ...
0
votes
0
answers
289
views
How do I fix dot-dot-slash error when running yarn dev using LWR v0.8.1
I've created a single page app with LWR v0.6.5 and it works great locally. When I upgrade to LWR v0.8.1 and run yarn dev the app returns this error:
[info] Watching: /Users/me/my-app/src/modules/...
2
votes
0
answers
416
views
Issue with using LWC base components <lightning-input> with the LWR Single Page Application
I've started with a Single Page Application on LWR, Able to run the app with Lightning design system and LWC base component package.
When I use <lightning-input> tag in my component js, it ...
2
votes
0
answers
509
views
Mobile Publisher Playground App Login Error on LWR site
I an building a LWR experience site (using the 'build your own' template), and have a custom login page. This works perfectly well in a browser, but on mobile publisher it displays an error in ...
1
vote
1
answer
197
views
Where are Lighting Web Runtime OSS built static files?
When using LWR OSS, I'm running npm run dev as stated in the doc, however I don't see any built files.
When I was using create-lwc-app (deprecated), I could see all files generated under dist folder.
...
3
votes
1
answer
167
views
What's the expected label file format for Lightning Web Runtime OSS?
In the Lightning Web Runtime OSS documentation, in the "Use Module Providers" section, I can see "Your application components can now statically import labels sourced from JSON files in ...
2
votes
1
answer
579
views
Drag+Drop regions for LWR sites
I'm working on an LWR site, and I've decided I need a Card component that'll let me drag and drop other components into it within the Experience Builder.
This should be possible via slots. I've ...