466 questions
0
votes
0
answers
108
views
Flow Radio Buttons labels are not aligned with the actual values
I have a Screen flow that is used in an LWC component in a community page
The screen flow has some radio button fields.
The language used is right to left.
The problem is that the labels are not ...
0
votes
0
answers
127
views
Can not Create Payment method on Stripe using LWC Salesforce
Error i get is - sending credit card numbers directly to the stripe api is generally unsafe.
I need to insert a card to a user and return payment method id.
In stripe there is a option to fix this in ...
0
votes
0
answers
212
views
Can not create a Stripe payment method from LWC
Error is stripe.createPaymentMethod is not working in lwc? This method renderedCallback to load Stripe js from static resources in salesforce.
async renderedCallback() {
if (this.stripeJsLoaded) {
...
0
votes
1
answer
42
views
sld responsive inline view of cards
I have following code that display advisors information with image or with name initials.
This code is working fine with desktop mobile tablet, but I am having problem to align these cards inline for ...
0
votes
1
answer
1k
views
Unable to convert PDF file to uint8Array
I am unable to convert a PDF file to uint8, which I get as a response to an API request. When printing out the response in the console, it has this form:
%PDF-1.4
%����
1 0 obj
<</CreationDate(D:...
1
vote
0
answers
222
views
Background color only goes halfway on 2nd page of pdf generated with Puppeteer
I am generating a pdf with Puppeteer. When the generated pdf is more than one page, the second page's background color stops where the last div stops. I would like the background color to go to all ...
0
votes
1
answer
2k
views
Id is returned as undefined onclick event
I am trying to fetch the Id of the record when user clicks on edit, this is little different out of box implementation rather than regular edit functionality in lightning datatable. Using custom ...
0
votes
0
answers
1k
views
How to show edit and delete buttons in single column in lightning datatable
I have requirement to show edit and delete button in single row rather than two different rows in lightning datatable of lwc.
Currently it is displaying as shown below
Instead of this want to display ...
0
votes
1
answer
444
views
Salesforce lwc onclik function not running
I have a lwc with button "Send" using onclick={sendSMS} in the html. The sendSMS function does not fire.
Here is the HTML:
<template>
<template if:true={properties.showName}>
...
0
votes
1
answer
1k
views
Salesforce LWC: Not able to create record and not getting any error as well
I have created a custom object and fields. and trying to create a record using LWC in Salesforce.
Here is my JS code:
import { LightningElement, wire } from 'lwc';
import { getObjectInfo, ...
0
votes
1
answer
454
views
console log a reactive prop in lwc
Hello I am learning salesforce and the documentation is sometimes vague for lwc. I am coming from svelte / react and I want to console log the value of a variable being passed down from parent to ...
0
votes
1
answer
2k
views
Salesforce apex class, unable for deploy for this organization
I created a simple apex class but its not allowing me deploy it from vs code. It is giving me "Not available for deploy for this organization". I thought this was strange bc I am able to ...
0
votes
2
answers
206
views
SVG linear Gradient & fill = URL(#grayGradient) is not working in LWC
When I am trying to use the below code & dynamically pass the value to render the bar it does not show the svg with color :
below is the code for refrence
<template>
<label>
&...
0
votes
0
answers
302
views
Not able to load FullCalendar premium plugin and load views in LWC Salesforce
I am trying to load a view from a premium plugin on a click of a button in my LWC but when I do so I get an exception "Error: The FullCalendar view "resourceTimeGridDay" does not exist. ...
0
votes
1
answer
434
views
I am unable to push my source code to Salesforce org after connecting it. It's showing component failures and errors in the package.xml
(https://i.sstatic.net/xEn77.png)
i am facing push code to salesforce org(lwc session push or deploy code command does not fire) error show me component failure invalid version to package.xml error ...
0
votes
0
answers
2k
views
Using lightning-input in Lightning Record edit form lwc
With record-edit form i'm using Lightning-input instead of lightning-input-field(for validation and other purpose)
<lightning-record-edit-form record-id={recordId} object-api-name={objectName} >...
0
votes
2
answers
439
views
How to display an array of objects in table in two columns?
I want to display array of objects in 2 columns in a table. what is the easiest method to display the list as two columns?
const columns = [
{
subHeading: "A",
subText: [&...
0
votes
2
answers
743
views
Salesforce B2B Commerce (LWR) - "global.css" style
I'm quite new to B2B LWR, but I'm not new to web development in general.
I'm trying to understand what is the best way to have like a global.css (general css styles) and then particular css styles at ...
0
votes
1
answer
689
views
How can I get the email Id of the user who 'Logged in as' another user in Salesforce Apex or LWC
Let's say manager_a has permission to view the account of payee_a, so manager_a logs in to payee_a, inside I have my LWC app, I can able to get the payee_a's email id using
import userEmailFIELD from &...
1
vote
0
answers
313
views
Using Three.js with Lightning Web Component (LWC)
I wanted to reach out because I've been working on utilizing the Three.js library alongside LWC to showcase 3D renders (in formats like .fbx or .glb).
However, I'm encountering some issues with the ...
1
vote
1
answer
6k
views
How can I obtain the Logged In User's data in LWC on a Salesforce Community Page?
I have a project with the following requirements:
Must work on a Salesforce Community Page (currently testing in a Lightning Home Page).
Must display a list of fields from related records.
There is ...
-1
votes
1
answer
245
views
What should I Do ? the Salesforce LWC components continously showing this error
**This is An Apex Class Calling From Parent JS.
public with sharing class accountProvider {
@AuraEnabled
public static List<Contact> searchContact(Account objAcc){
Id accId = [select Id,...
0
votes
1
answer
317
views
How to get updated data from task editor widget from custom field in bryntum gantt chart library
I have created a Gantt chart using bryntum library, it's a very good library so far, all although there are many topics that I am not able to understand from their official documentation,
Like I have ...
1
vote
1
answer
2k
views
Salesforce lightning card header background
I am trying to change the header color of the card and also there is line after the data table how to get rid of that line. Is it the border of data table.
I want to get this result
Is it the ...
0
votes
1
answer
975
views
LWC FlowAttributeChangeEvent issue
This is my variable
textVal==>{"Basin":["Atlantic"],"Storm Name":["ALEX","BONNIE","COLIN","DANIELLE","EARL","...
0
votes
1
answer
773
views
Unable to fetch Id in LWC javascript
I created LWC Button and when click on button if record has ParentId the it will fetch the dtails other wise it will not fetch any details.
I am unable to get Id of record in console and
LWC
`import { ...
0
votes
1
answer
121
views
retrieve all the objects related to an account in SALESFORCE and then export them to an EXCEL file
I need to retrieve all the objects related to an account in salesforce and then export them with a button to an excel file with multiple sheets. Is there a way to do this in apex or lwc or whatever?
I'...
0
votes
1
answer
938
views
Create dynamic text html for lightning combobox
I am using below code for lightning-combobox in lwc HTML file
<lightning-combobox value={value} label={labelWonLostReason} onchange={handleWonLostRegionChange} options={...
1
vote
0
answers
2k
views
Problem with sizing lightning-input with type date LWC Salesforce Mobile
mobile
When I try to change size the field using styles etc. visually everything is fine, but only the first part of the field is active. This problem occurs only on the mobile version and with the ...
1
vote
1
answer
4k
views
Template data displayed is not refreshing after onchnage event of a custom picklist field using In Salesforce LWC
I am displaying records in html template using LWC in salesforce. My columns containing depended fields like country , state and city. When I am modifying displayed data by changing country, then I ...
-1
votes
1
answer
6k
views
LWC1058: Invalid HTML syntax: unexpected-equals-sign-before-attribute-name
I'm not a developer and I'm trying to get chatGPT to write me a Lightning Web Component (LWC) on Salesforce. I've managed to get a few things done, but I'm stuck on a problem that I can't seem to ...
2
votes
1
answer
1k
views
Field Dependency implementation in Custom Picklist field type using LWC giving `[NoErrorObjectAvailable] Script error `
We are trying to implement field dependency in custom picklist field type with LWC. For this I created one LWC component to define custom lightning datatable. And I am using custom picklist fields ...
0
votes
1
answer
3k
views
LWC Date Field onchange should show old value if validation fails
LWC component Date Field should not change if validation fails onchange event.
I have an LWC component lightning-record-edit-form with startDate and EndDate input fields. Start date is always ...
0
votes
2
answers
6k
views
LWC modal is not closing
I created a LWC which works ok. I created this LWC so that I can use it as a Quick Action. Because LWC can not be used in quick actions for Work Order object, I had to put the LWC in a aura component ...
0
votes
1
answer
237
views
How to display hierarchail json as tree in lwc
I have a JSON object.
[
{
"label": "Lauren Boyle",
"name": "Lauren Boyle",
"expanded": true,
"items": [
{
&...
3
votes
1
answer
1k
views
Custom picklist field in Salesforce LWC not able to Save and not able to access updated value (Default Save button not appearing)
I successfully implemented Custom Picklist field functionality using Salesforce LWC. All values from picklist are loading properly in drop down. But when trying to save records after drop down change, ...
0
votes
1
answer
541
views
How to get FROM and TO address updated dynamically in the "Create Email as quick action with LWC"?
I am trying to implement "Create an Email as a Quick Action" using below:
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions_email
https://www....
0
votes
2
answers
2k
views
Passing a variable to href in HTML
I want the 'id' variable between 'Contact' and 'view', how should i do it to make it accessible dynamically?
Any simple solution that works?
var id = 0x323214343;
<a href="https://develop....
0
votes
1
answer
282
views
Why is this code not passing the check challenge?
I'm currently studying for my first superbadge, and it's been quite an adventure so far! However, I've hit a roadblock on the second task (Automate record creation) and could really use some ...
0
votes
1
answer
1k
views
Unable to populate the Account.Name lookup value in data table
I'm unable to populate the Account.Name lookup value in a data table. Although its visible in console but not on the data table.
0
votes
1
answer
3k
views
How to pass selected records i.e, list of records which isn't related to any sObject and Custom Object from LWC to Flow
I'm having a list of records which isn't related to any custom or standard object I need to pass it to Flow. how to pass the list of records from LWC to flow using in js-meta.xml and also help me what ...
1
vote
1
answer
881
views
Promise never getting resolved in LWC Salesforce
I have implemented a promise using the ui/RecordApi to update a record in Salesforce. Strangely that promise never resolves or rejects or even enters finally. Below is a sample code for this. Please ...
2
votes
0
answers
420
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) {
...
1
vote
0
answers
3k
views
Salesforce LWC custom lightning-datatable with picklist
Within a component of a child component that I'm trying to develop, a list containing records to be modified in a datatable is passed to me by a parent component.
However, one field of this datatable ...
0
votes
1
answer
3k
views
Lightning-combobox dropdown options not visible on UI
Dropdown options for the lightning combobox are not getting displayed on UI.
All values are getting fetched through the standard method getPicklistValuesByRecordType in the Js file of LWC component.
...
0
votes
0
answers
660
views
Unable to see datalabels on chartjs in LWC
Trying to display datalabels on the a pie chart using chartjs library in LWC. Tried both version pairs for chartjs and chartjs datalabel plugins libraries (V4.2.1- chartjs & V2.2.0 - chartjs-...
0
votes
1
answer
169
views
How can i use <object> tag to import a static resource SVG file inside salesforce community
I have a SVG file with some text content, this file is inside static resources.
OnClick of that text i need to call a JS function from the LWC.
This works fine in salesforce org but for community tag ...
-2
votes
1
answer
47
views
How to print html text in new line when pusing data from javascript backend
formatPopupBodyText(serverPayload) {
let result = this.formatBusinessHoursText(serverPayload);
if (serverPayload.PhoneNumbers__c != null && getCurrentCountryCode() === 'IN' && (...
0
votes
1
answer
143
views
LWC Jest Test showing show error in Azure Devops Pipelines
When i running Jest test for LWC in azure pipelines i got strange error
Cannot find module 'c/myComponent' from 'force-app/main/default/lwc/myComponent/__tests__/myComponent.test.js'
1 | import { ...
0
votes
1
answer
622
views
How to setup remote site origin programatically in salesforce during the app installation
I'm developing the salesforce app using salesforce LWC components, I have requirement where I should process the salesforce data from an external system, for this I'm sending the data to the external ...