Questions tagged [lightning-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
535 views

Why is Refresh Apex not working while Inline Edit in LWC datatable?

Why is refresh Apex not working during Inline Edit? When I edit the record, even though the new value gets updated, but in the datatable the old value gets displayed. How can I fix this? .html <...
user275494's user avatar
0 votes
1 answer
11k views

Retrieve the field values of record in Lightning Component

I am using the Lightning Data service in my Lightning Component to update a case record, before I do update the record I need to check on the field value and update accordingly. Below is my component &...
user81642's user avatar
  • 667
0 votes
1 answer
589 views

I want to populate respected account on account field when any opportunity select

I have created a component and i created a onchange event on opportunity field it called a controller method and this controller method called a apex method with opp id and return acc id so i can ...
Ankit verma's user avatar
0 votes
1 answer
607 views

Disable "Save" button after condition on Lightning Component

Hi I'm new to Salesforce and am stuck on this part: How to disable the "save" button after it was already clicked? My Component: <div align="right"> <lightning:button ...
Amy Barce's user avatar
0 votes
1 answer
809 views

How to remove mandatory error messages

I am using lightning input field which is mandatory.when ever the input field is empty required error message is displaying.Now what is happening is as soon as we start typing some text inside the ...
dileep's user avatar
  • 33
0 votes
1 answer
960 views

Loading/ View records of Account using Lightning data service (force:recordData component)? [closed]

I have been practicing the examples given in Lightning developes Guide and the topic is Display Record Data in a Custom User Interface Using force:recordData I copied and pasted the below code ...
MAYANK SINGH's user avatar
0 votes
1 answer
1k views

Lightning Component in VF Page not working with Force.com Sites

First time using Components - putting it in a VisualForce page to leverage on a Force.com Site. The Component works just find on the VF page accessing when logged in (https://mydomain/apex/Testpage). ...
guppster01's user avatar
0 votes
1 answer
106 views

Can I put actions tab on custom new object page?

I've created a Lightning Component to use for the 'new' action of my custom object. However, I've been asked to put the actions tab, particularly the 'new task' action on the page. I created the ...
Luke G.'s user avatar
  • 101
0 votes
1 answer
2k views

Opening a Lightning Component in a tab in Lightning Community

I am trying to open a Lightning component with a record id in new page / full screen from a Quick Action. Since, the component opens in a small popup, I used the approach mentioned here How to open ...
pmehta28's user avatar
  • 107
0 votes
1 answer
395 views

lightning datatable: get additional records by enableInfiniteLoading

How can I get additional records by lightning datatable enableInfiniteLoading? I wanna get more 10 records when scroll lightning datatable, but the datatable shows only first 10 records when scroll ...
Shin's user avatar
  • 53
0 votes
1 answer
2k views

Lightning component auto refresh to view the case record

In Detail-record page, where you can see (activityTracking page and related list) and on header of the page there is new case button to create a new case record. I have an activityTracking page(...
Ajay's user avatar
  • 19
0 votes
0 answers
41 views

How to call Intercom Javascript Function within a Lightning Component

Intercom, an in-product messenger has several JavaScript functions including one to show their messenger: https://developers.intercom.com/installing-intercom/web/methods/ We are trying to call this ...
Kevin's user avatar
  • 55
0 votes
0 answers
111 views

How to get selected rows in lightning:datatable using onClick from lightning:button

Use case: Users are presented with a datatable that they can select records from and click a button to convert those records into pdf I can't get past the selecting and displaying the records in ...
JRachelle's user avatar
0 votes
0 answers
51 views

force:navigateToURL has started throwing some exception

Earlier I was using force:navigateToURL to open blob file in new tab but suddenly it has started throwing the exception about startsWith is not a function. "Error in $A.getCallback() [c....
Yogesh Rawal's user avatar
0 votes
0 answers
67 views

Looking for an alternative solution for set Interval (Salesforce Lightning Aura component)

We have build an component on the Case Lightning Page to highlight dynamically the Case tab after an conditional update on the case record. We also want to use an Case Timer(appExchangeStore) to track ...
Sam's user avatar
  • 1
0 votes
0 answers
53 views

What is Case._LightningUpdateCase quick action?

Good day, I've noticed in my org, that there is a Related Record component on the Case lightning page that show that case data, but the strange thing there is that in 'Update Action' of that Related ...
Oleksii Bezuhlyi's user avatar
0 votes
1 answer
104 views

Update on Case Record Detail Page should automatically render my LWC render or re-render

I am trying to build a custom component which I will place on the right side of the case detail page. Whenever, I update a particular field on the Case, based on that change, the custom component ...
vishnu.b's user avatar
0 votes
0 answers
12 views

experience/community builder list action on mobile

For internal usage whe have a list view action on our case list views. In our experience Site we have a page "Case list View". On this page is a list view of all cases. There are no List ...
q-jack's user avatar
  • 194
0 votes
1 answer
4k views

Enable Inline Editing for Lightning Table

I have a LWC Table that is in a custom object and will need to display in the Record Page similar to a Table in Excel. The goal is to be able to enter Quantity and the other columns will not take user ...
FrancoDD's user avatar
0 votes
1 answer
65 views

Lightning Components Badge

I need help to solve this problem: I'm trying to complete the Lighting App Builder Trail... So, I'm doing the last challenge where ask me: So, when I'm going install package tab and paste it the ...
Bobby Pepe Trueno's user avatar
0 votes
0 answers
708 views

Filter component visibility by running user

Can anyone see, why this wouldn't work? I have also tried: userinfo.getuserid() user.id account.OwnerId
Wiesiek Bland's user avatar
0 votes
1 answer
438 views

How to override the Tab Style of Account Standard Object using Lightning Component

INFO BELOW IS FOR VISUALFORCE but I need to override the Tab with a Lightning Component. Any idea how to do this? Create a Visualforce page with the below code(same as yours but without a tabStyle ...
mels.c's user avatar
  • 23
0 votes
0 answers
702 views

Community reCaptcha - Lightning component

I've saw some links but apparently all of them are outdated. I'm trying to add the recaptcha on a community that only contains a custom lightning component. I've tried to follow this tutorial and no ...
Julio Didier Maciel's user avatar
0 votes
1 answer
2k views

How to set maxlength for lightning-input-rich-text

How can we limit the number of characters entered in rich text field lightning field <lightning-input-rich-text value={myVal}> </lightning-input-rich-text> Is there any ...
AdityaHM's user avatar
  • 133
0 votes
0 answers
29 views

How can I transfer id from comp1 to comp2 when comp2 loads after a button click on comp1?

Comp1 and comp2 are 2 lightning component and are not in any relationship of parent-child. I used application in comp1 to fire and it is handled in comp2. Event <aura:event type="APPLICATION&...
Tushar Saxena's user avatar
0 votes
1 answer
871 views

Making a Record Related List Button for Classic and Lightning

I have a related list button in Classic that isn't working in Lightning and we are still transitioning. We created a Lightning Action that calls a Lightning Component and leads to the same controller ...
LMills's user avatar
  • 23
0 votes
1 answer
807 views

Trying to get Flow redirect working with a Lightning Component that is running a Flow. Any help would be much appreciated

I think that I am missing something small or then my whole logic is wrong with this. Here is the Lightning Component, that has been copied from a Salesforce Developer sites. https://developer....
Henri Harvilahti's user avatar
0 votes
1 answer
585 views

Lightning Component Quick Action - Hide Modal Placeholder

I've created a new lightning component - which suppose only to update certain fields - and notify the rep when it's completed (using toast event). I added this as a quick action - and every time i'm ...
Omnia's user avatar
  • 191
0 votes
1 answer
30 views

How to assign existing option selected value in Lightning?

I want to assign current selected option which is '0' and I want to assign it to '2' when URL is change. How can I do that? Please help. Example.cmp <div class="slds-col slds-size_1-of-5 slds-...
Ssp1145's user avatar
0 votes
0 answers
208 views

Unable to add related record component (standard) in app builder record page

I am trying to add the related record component (standard lightning component) inside account record page. While adding there is no error. Its got activated successfully but when I am coming back to ...
Raj SF's user avatar
  • 327
0 votes
1 answer
442 views

The dataset is returning null value while using lightning component chart

Apex Controller public class TableBookingStatusController { @AuraEnabled public static List<DataSet> getAllTables(){ List<Table__c> result = [Select Name, ...
Tanvi Thakur's user avatar
0 votes
1 answer
401 views

I want to validate the field value before submit the record edit form which is in aura:iteration

<aura:component controller="EditFormTestController" implements="flexipage:availableForAllPageTypes,force:appHostable,force:lightningQuickAction,force:hasRecordId"...
salesforceDevil's user avatar
0 votes
1 answer
121 views

How do I get an updateTime on header of related list with lightning component?

I'd like to know about ' Updated 17 minutes ago' feature how it work on lightning component. I'm making custom related list view with lightning component and I want to show latest update time as below....
Chris Jang's user avatar
0 votes
1 answer
247 views

Can I have dependent pick lists in design attributes

I'm working on a case where I want to show picklists in design attributes. Here, in my case, I want to show them dynamically. i.e. let us take that there 2 picklists in design attributes, first to ...
user3872094's user avatar
0 votes
1 answer
443 views

how to set width for a custom lightning component in UI

I have created a custom lightning component, but on the UI it overflows and not able to set the width. Can anyone please let me know how to do this? I need to display this primary contact as other ...
Nagarathna Sanjeev's user avatar
0 votes
1 answer
369 views

Response from server side controller waits for user interaction without any instruction to wait in salesforce lightning

I was trying to implement lazy loading without Datatable for learning purposes. So I created a table that shows 20 record's data initially and as I keep scrolling to the end of the table, every time ...
Ahmed Shahriar Adnan's user avatar
0 votes
1 answer
36 views

aura:component fileUpload

create a lightning component to upload images (fileUpload). that component goes to the registration page of a custom object, but when entering the salesforce1 application I cannot see the component. ...
CarlosMato's user avatar
0 votes
0 answers
1k views

Lightning controller is not calling apex class method

I have created a lightning component that uploads the files into the content version after uploading the files the controller will call the apex class and apex class will fetch the pdf from the ...
user avatar
0 votes
1 answer
447 views

force:createRecord Lightning Component that functions in one Sandbox fails in another

Background I have a Lightning Action that initiates a Flow. The flow gathers record data, collects one variable from the user that is selected via a radio-button choice, then launches a lightning ...
Jwok's user avatar
  • 767
0 votes
1 answer
28 views

Connected app components randomly not loading

Connected app components are not displaying in our customers' orgs. Randomly the components are not loaded into their respective divs. Roughly 95% of the time they AREN'T loaded. If we disable cache ...
FBuser's user avatar
  • 31
0 votes
0 answers
133 views

GA Tracking on Playing of Video in iFrame in Lightning Component

Google Tag Manager is not picking up that a video is clicked for playing in a Lightning component where the video is in an iFrame. Thoughts? <iframe src="{!'https://www.youtube.com/embed/' + v....
Michele Kleinhomer's user avatar
0 votes
1 answer
270 views

can we have select2 behavior in lightning components

Is it possible to provide search mechanism in picklists with lightning component as shown in image? Please let me know if anyone has idea.
Praveen Kumar Reddy's user avatar
0 votes
1 answer
161 views

Lightning Component in Flow Screen using IE11

I'm using a lightning component in a screen flow, in chrome it works, but not in IE11. Anyone has any Idea?
Mo Hamada's user avatar
  • 170
0 votes
1 answer
324 views

listName of lightning listView [closed]

How can we get the value of listName to use lightning listView? Should I check Salesforce setting? I wanna use listView for custom object, but I'm troubled with how to set listName. <lightning:...
Shin's user avatar
  • 53
0 votes
1 answer
345 views

inline edit for the relational record in the lightning datatable

How can we make inline edit form features for relational record in the lightning datatable? Below is the current code, and I would like to you to correct this code to achive inline edit for ...
Shin's user avatar
  • 53
0 votes
1 answer
840 views

put text by link style in lightning datatable [duplicate]

I want to put data in lightning datatable by url link style like attached to express the record of relationship. I tried header type "url", but it showed "http//" in the cells. How can we put data ...
Shin's user avatar
  • 53
0 votes
1 answer
464 views

Slds brand band not appearing with custom component in visual force page

The slds brand band disappears after the component is loaded into the div. How do i fix this issue so that i can have the salesforce background with my custom component. Steps to reproduce: ...
Hamza Alvi's user avatar
0 votes
0 answers
323 views

pass record data to lightning component in lightning page in salesforce community

How to pass record data to lightning component in lightning page in salesforce community? I want to create a button on A_Object's record detail page.It will be: click it → open the lightning page(...
baoruida's user avatar
0 votes
0 answers
320 views

Is there a way to use a "Create New" lightning component to pre-populate a lookup once the record is created?

Here's my use case: I am creating a Quote. We have a custom field on the Quote called Listing. Sometimes, the listing doesn't exist and so we want them to be able to create the listing directly from ...
willard's user avatar
  • 997
-1 votes
1 answer
87 views

Lightning Table Not Display Data

I've been wracking my head the whole day at this, I'm very new to Salesforce and trying to create a Lightning Component that displays Contacts and what Commission they've earned. I'm just not getting ...
Rad's user avatar
  • 3