466 questions
0
votes
1
answer
259
views
How to Integrate Roles Field from "Account Contact Relationship" to Contacts Object Fieldset
I have a field called Role under fields in "Account Contact Relationship". I wanted to integrate this field in contacts Object fieldset. Since am new to salesforce, I don't have any idea how to do ...
0
votes
1
answer
444
views
Update Information Using DML in Aura
I've been training Lightning Components by myself and I'm creating a modal that shows the user a video. The user has the option to tick a checkbox which prevents the modal to show up again. My ...
1
vote
1
answer
9k
views
Salesforce LWC - error message when using querySelector on a datalist element
I'm writing a lightning web component in which I have to assign a <datalist> element to one of my <input> elements' list property, in order to bind them.
For some reason, this JS line:
...
0
votes
1
answer
7k
views
Salesforce LWC Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined
I am getting this error when running a Salesforce scratch org application;
aura_proddebug.js:274 Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined
at ...
3
votes
1
answer
1k
views
Synthetic LWC Shadow DOM Slots vs Native shadow DOM Slots
The LWC synthetic shadow dom doesn't seem to handle slots like the native shadow dom implementation e.g.
Let's say you start with a element:
<hello-there><h1>Hi there</h1></...
1
vote
1
answer
9k
views
Embed Lightning-input with lightning-icon in LWC
Can someone help with sample of embedding the lightning-icon inside a lightning-input in LWC
<lightning-input type="search" name="To Address" label="To"
class="slds-...
1
vote
0
answers
685
views
Closable custom Lightning tabs in Salesforce
Is it possible to create closable lightning:tab?
Following is the code snippet for lightning:tab but there is no out of box event/method to handle tab close operation.
<aura:component>
&...
1
vote
2
answers
1k
views
How to avoid errors from onchange methods on lightning-input?
I'm trying to learn the basics of Lightning Web Components and I'm having trouble getting the value of a lighting-input element.
I understand that it's designed for one way data binding instead of ...
1
vote
1
answer
3k
views
SyntaxError: Cannot use import statement outside a module in JEST LWC
I am trying to test my first lightning web component using visual studio code as my IDE. As instructed I installed Node.js, npm and jest dependency. But I am getting this error
Error Image
when ...
2
votes
0
answers
333
views
Can we integrate LWC component into REACT JS
I just wanted to give it a try, but before that, I thought of checking in stack overflow. Can we use the LWC (Lighting Web Component) component inside React JS?
0
votes
0
answers
1k
views
Unable to test setter/getter method inside of LWC using jest testing framework
I am trying to test LWC components.js using jest. There is a setter method(Step) inside of the LWC components js file, but I am unable to test the setter method. I tried the solution using mock that ...
0
votes
1
answer
2k
views
Issue with lightning carousel
I am facing some issues with a lightning carousel that I am building in lwc like it is showing only 5 to 6 images inside the carousel and remaining are not showing up. If there is any limitation for ...
4
votes
2
answers
1k
views
LWC test using jest testing framework throws error - unknown public property "smalldevicesize" of element
While testing LWC in VSCode using jest script, unable to render custom LWC component, it throws an error- Unknown public property "smalldevicesize" of element . This is likely a typo on the ...
1
vote
4
answers
10k
views
Navigate from one LWC to another LWC
I have two lightning web components and I have to navigate from one LWC to another LWC on button click.
I tried navigation service to apply the NavigationMixin function in the component’s base class ...
2
votes
3
answers
8k
views
Hide/show Button in LWC
I'm new to LWC in salesforce and want to hide/show the button based status. I write below code but it is hiding for all statuses. Can you please help me if am wrong.
<template for:each={...
5
votes
5
answers
20k
views
Pass value to lightning-input tag in LWC
Does anyone know how to pass checked value to checkbox in Lightning Web Component?
My code looks like:
import { LightningElement, track } from 'lwc';
export default class MyComponent extends ...