Questions tagged [lwc]

For questions about Lightning Web Components (LWC) - the UI framework for the Salesforce platform. When using this tag also include the more generic [salesforce] tag.

503 questions
1
vote
0 answers

Lightning Progress Indicator Icons

I've been doing some research but I couldn't find any articles that supports if we can change the Icon on the lightning progress indicator. Is there anyway to change the icons that is showing in the lightning progress indicator? Currently based on…
Rows
  • 11
  • 1
1
vote
1 answer

aria-hidden=“true” or aria-live=“assertive” is not working with foreach in lwc

I have a requirement where NVDA screen reader should read the error messages (dynamically displayed) on the lwc. I have an array with list of error messages and used to display them. However these messages are never read by NVDA Speech viewer. I…
Kanikala
  • 15
  • 1
  • 5
1
vote
0 answers

How can I acces data from a soql inner query in a lightning web component

How can I access data from an inner query in lwc? Here's my code: JS: @wire(getProducts) wiredProducts({error, data}){ if(error){ this.error = error; }else if(data){ console.log(data); this.products = data; …
peepoCode
  • 21
  • 1
1
vote
2 answers

import third party JS library in open source LWC

After wasting significant amount of time on how to import jQuery, I got below 2 ways in HTML with local path or CDN: IN JS with local path or CDN: var script =…
gs650x
  • 383
  • 2
  • 22
1
vote
1 answer

How can I fix sfdx error: The "path" argument must be of type string. Received undefined

**I am getting this error when I try to deploy source to Org ** The "path" argument must be of type string. Received undefined sfdx-project.json { "packageDirectories": [ { "path": "force-app", "default": true } ], …
Manoj Kumar
  • 41
  • 1
  • 6
1
vote
1 answer

LWC SuperBadge Challenge 7 boatsNearMe Error

My component works fine and I can see it is working properly with the maps being formed in UI and markers coming up properly, however I am still get this error for the challenge : Challenge Not yet complete... here's what's wrong: We can't find the…
Artee Rawat
  • 13
  • 1
  • 4
1
vote
1 answer

Reload tab on navigation in LWC

I have a use case where I need to navigate from one salesforce tab to other. I want the tab to which I navigate to reload as I want it to render and per new data which I will be setting in the previous tab. I have tried using following code but it…
anish samant
  • 183
  • 1
  • 4
  • 13
1
vote
1 answer

How to convert today date numeric to string today's

I would like to show today instead of not showing Date(23-07-2020) in numeric values. Is it possible? Like this picture I need to show the date as today or yesterday var today = new Date(); var date =…
1
vote
1 answer

Call a method on switching between lightning tabs in salesforce using LWC

I have 3 lightning tabs. I want to run a particular piece of code on switching between these tabs. Is there a way I can do it. I tried writing the code in renderedCallback and connectedCallback, but none of these methods are called on switching…
anish samant
  • 183
  • 1
  • 4
  • 13
1
vote
2 answers

Different placeholders on different browsers

I have a quesion, I'm looking for documentation from Firefox and Chrome which tells me why on Chrome browser the input with type date looks like below And on the firefox looks like this
artist
  • 319
  • 1
  • 5
  • 18
1
vote
0 answers

Simple Jest test is failing (Salesforce LWC)

Hello i have a very simple LWC component that runs on a custom record, it takes in the rec id as a parameter calls apex, and displayed the response message to the user. The issue i am having is when writing a Jest test for this i encounter errors…
1
vote
2 answers

Lightning Web Component Reactive and Non Reactive Properties

I have a Lightning Web Component with 2 private properties. One property is reactive via track, and the second is non-reactive (not decorated). This is the HTML file: