Questions tagged [lightning-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
694 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
923 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
963 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
77 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
1k 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
0 votes
1 answer
379 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
27 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
29 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
35 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
11 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
1k 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
51 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
297 views

Error: Can't remove form factor Small as an action override exists with that form factor

I have a lightning app utilizing 5 different objects each having it's own lightning record page. Initially I set the apps form factor to Desktop and Mobile. then the lightning record pages were ...
rickmac's user avatar
  • 703
0 votes
0 answers
481 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
0 answers
433 views

Uncaught Error in $A.getCallback() [state.getReturnValue is not a function] Callback failed: apex://CustomButtons/ACTION$getCaseType

Trying to create buttons that displays all the types of cases in the contact record page here are my codes. Component - <aura:component controller="CustomButtons" implements="...
user116145's user avatar
0 votes
1 answer
317 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
571 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
27 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
749 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
604 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
474 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
  • 139
0 votes
1 answer
29 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
174 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
403 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
352 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
115 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
210 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
421 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
339 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
34 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
344 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
  • 678
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
122 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
263 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
160 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
306 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
326 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
700 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
448 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
282 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
305 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
  • 987
-1 votes
0 answers
34 views

How to hide a tab in Lightning record pages based on permission set?

I have a Lightning record page and I added a new tab on the standard object. Now, I want this tab to be visible only to users with permission set A. Please note all the users belong to the same ...
Jason Castle's user avatar
-1 votes
1 answer
61 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
-1 votes
1 answer
84 views

Add a check in the components helper that checks for the running user's profile

I have the following function in my js helper class. I just need to view the labels on basis of user's profile. If Profile name is 'ABC' then show Label L1,L2 and L3. And IF profile is 'xyz' show ...
user49787's user avatar
-2 votes
2 answers
203 views

component.find() Not working when there is 1 element, but if they are multiple elements with same ID it works

I have a list of items that I am iterating. Each iteration generates a checkbox: <aura:iteration items="{!v.roles_empty}" var="role" indexVar="idx"> <...
manza's user avatar
  • 1,945

1
2