Questions tagged [lwr]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
user3214361's user avatar
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....
Charleston Santos's user avatar
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}...
Vladimir Egikyan's user avatar
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 ...
stackusiastic's user avatar
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 ...
JDB's user avatar
  • 660
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 ...
nitolos's user avatar
  • 21
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 ...
Vladimir Egikyan's user avatar
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 ...
Carlton Banks's user avatar
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 ...
Ashish's user avatar
  • 2,362
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 ...
Eduard's user avatar
  • 5,077
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 ...
ozanozaydemir's user avatar
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 ...
Kevin Ang's user avatar
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 ...
Lakshmi RS's user avatar
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 ...
JDB's user avatar
  • 660
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 ...
Akash Musale's user avatar
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 ...
Keith C's user avatar
  • 135k
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 */ ...
chanpelayo's user avatar
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 ...
Manoj Goswami's user avatar
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. ...
Juan Ge's user avatar
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: ...
Eugene's user avatar
  • 13
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 ...
Darryl Le Roux's user avatar
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 ...
Darryl Le Roux's user avatar
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={...
Amax1's user avatar
  • 109
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 ...
Alex Krikorian's user avatar
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 ...
Aditya Sehgal's user avatar
-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 ...
user133782's user avatar
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&...
Darryl Le Roux's user avatar
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 ...
Darryl Le Roux's user avatar
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) { ...
James Ridge's user avatar
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 ...
Darryl Le Roux's user avatar
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&...
senoron's user avatar
  • 192
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 ...
Matthew Souther's user avatar
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 ...
Juan Ge's user avatar
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 "...
Rahul Joshi's user avatar
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
sweta sweta's user avatar
-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?
sweta sweta's user avatar
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 ...
Pascal's user avatar
  • 1
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 ...
Bob Roberts's user avatar
  • 2,755
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 ...
Petar Gechev's user avatar
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 ...
Stijn's user avatar
  • 409
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 = ...
Akhil Raj's user avatar
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. ...
javanoob's user avatar
  • 8,797
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 ...
Jeet's user avatar
  • 193
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 ...
ddeve's user avatar
  • 1,547
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/...
Stickel's user avatar
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 ...
user2809299's user avatar
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 ...
Chris's user avatar
  • 23
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. ...
Fabien Taillon's user avatar
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 ...
Fabien Taillon's user avatar
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 ...
stackasaur's user avatar