Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions related to Lightning CSS Framework called Salesforce Lightning Design System or SLDS for short. Specifically questions on how to use, getting certain features to work, and questions related to any of the suggested code or use cases on the Lightning Design System Website: https://www....

1
vote
1answer
64 views

We need to uniquely identify multiple lightning components on same page( using lightning app builder)

We need to uniquely identify multiple lightning components on same page(added using lightning app builder) and we need to save respected responses and use them later. For this purpose we need a unique ...
0
votes
1answer
33 views

Button text coming in two lines and increasing the length of lightning button

i have a lightning component button which has a longer text and it is going in two seperate lines and forming the following structure. Is there any way to keep it in a single line? i used the ...
1
vote
1answer
372 views

Renderer in Lightning component

I am new to lightning and i just dont get renderer. Why do we use it? Can please anyone tell me with example. I get the part that salesforce automatically renders if some data is changed. But why use ...
4
votes
2answers
329 views

Datepicker not displaying properly lightning component

I have following lightning component. sp.cmp <aura:component controller="Pledge_Mgmt_Controller"> <aura:attribute name="paymentList" type="Map[]" /> <div> <div ...
1
vote
1answer
57 views

Lightning - centering the grid to the middle & the fixing column width

I am learning lightning and stuck with centering the grid to the center of the page. <div class="slds-grid slds-wrap slds-gutters slds-align_absolute-center slds-grid--pull-padded"> <...
0
votes
1answer
37 views

How to execute if condition inside option tag in Lightning Component

I wanted to display a different text for a specific set of result from the records. I tried the following code but it just displays the condition as it is. Is this even possible inside the option tag? ...
4
votes
0answers
137 views

Date picker calendar not showing on top in lightning component

This is my lightning component The problem is my date picker is displaying on the back and I am unable to select the date. I am using this Lightning component in quick action button. The code for my ...
0
votes
1answer
33 views

Duplicate Contact on Lead detail lightning page

I have requirement where lead is coming from webservice through form on one of our site .So,when lead is coming i have some dedup rules to check against existing contact.So till here everthing is ...
0
votes
1answer
280 views

Sizing the layoutitems based on size of the top container and not the viewport

We have built a lightning component which is to be used on the record home page. Now the user can either add the component in the side or in the detail section itself. Everything is working fine ...
0
votes
2answers
336 views

How to Lay a grid of 8 elements per row using Lightning Layout on a dynamic list?

I wanted to lay a grid using lightning layout for 8 elements per row on a list populated dynamically. What I want to accomplish is given below <lightning:layout horizontalAlign="spread" ...
3
votes
2answers
2k views

How to populate lightning:select with picklist field values?

Everything I have read online so far suggests that one must manually declare picklist (option) values when creating a lightning:select component in an Lightning application. For us, this is less than ...
0
votes
0answers
53 views

Issue with Lightning Data Service

In Quick action recordId not getting by using below component If i use same component in aura app i can able to see the record name But if i use the same component in quick action not able to see ...
-1
votes
1answer
151 views

Force:recordView - Not seeing the Case record in lightning

I am trying to dispay my case record on app but i am not seeing anything on my app. can someone please help. <aura:component controller="openCaseController" > <aura:attribute name="cases" ...
3
votes
0answers
253 views

Lightning:overLayLibrary issue Uncaught (in promise) TypeError: Cannot read property 'la' of undefined

trying to implement the Modal using Lightning:overLayLibrary as per this link lightningOverlayLibrary i am facing the below issue Uncaught (in promise) TypeError: Cannot read property 'la' of ...
2
votes
2answers
65 views

Why do the functions in my javascript controller only work individually, but not if both are in the same file?

Here is my code: ({ doInit: function(component, event, helper) { var action = component.get("c.getCampaigns"); action.setCallback(this, function(response) { ...
1
vote
1answer
62 views

Can we add help textf for Lightning:progressIndicator steps

any help or alternative to add helptext in lightning:progress indicator bar would be helpfull.
1
vote
1answer
52 views

How to position an element to center inside of a grid column?

On my VF page I'd like to center a content of a grid column. Code: <apex:page> <head> <apex:slds /> </head> <body> <div class="slds-grid ...
0
votes
2answers
691 views

Lightning:inputField does not show picklist values based on record type

Has anyone been able to successfully show picklist values based on record type using lightning components? We have 4 record types and for some reason all record types is defaulting to the RSO record ...
1
vote
1answer
144 views

Lightning component for search with popup

Are there any built-in lightning or ui components that represent a search bar with popup that contain the search results and pops up every time user types something in the search bar? UPD: if you go ...
1
vote
1answer
185 views

S-Control in Lightning

I need some guidance. In my current project there is a S-Control button on Send Email button. When i try to use the page in LEX it is not working. Can any one suggest me how i can fix this. Here is ...
0
votes
2answers
75 views

Getting Error while using helper method — helper is not a function

I am trying to implement helper method in my lightning component but getting below error. This page has an error. You might just need to refresh it. Action failed: sree123:calculate$controller$...
0
votes
1answer
60 views

How do you add aria attributes to a lightning base component? [duplicate]

I am implementing a component blueprint of the SetupAssistant component which needs aria attributes to properly toggle the chevron from being open and closed. Let's say I need to add the attribute: ...
0
votes
0answers
53 views

Adding style sheet from Lightning Design system to visual force

I'm trying to link my custom Lightning design system (Lightningdesignsystem_new) to visualforce page. The MIME type of Lightningdesignsystem_new is application/x-zip-compressed. This was working fine ...
2
votes
1answer
514 views

Lightning QuickAction background color change

On Case object, i have a quick Action "Assign Case" which looks as follows markup looks like this <aura:component implements="force:lightningQuickAction,force:hasRecordId" controller="...
-3
votes
1answer
199 views

traversing nth level in the lightning tree [closed]

i am trying to create account contact hierarchy in the lightning:tree and identifying nth level and creating tree like nested tree structure. parent account contact1 ...
0
votes
2answers
30 views

Lightning controller

I have created a basic lightning page to insert account record. It is working fine I can insert a record and can see records are getting created into the database but I require that once I click ...
-1
votes
1answer
247 views

Why doesn't slds card styling show default background?

My code is wrapped in an and styled with slds-card; not sure why the background is transparent. How can I get the default background styling to show? <article className="slds-card"> ...
0
votes
1answer
129 views

trouble with aura:iteration and JSON object

I have a Helper function with the following JSON: getUsersVacationItemsList : function (component, event) { var tableRow =[ { 'commonName': 'xpto', 'calendar': [ {...
-3
votes
2answers
37 views

Virtual Reality Lightning Component for Salesforce [closed]

I would like to ask if you can incorporate VR in a lightning component or a Lightning App?. I am planning to create a virtual tours and would like to ask a developers p.o.v for this kind of idea?. ...
-2
votes
1answer
114 views

“Attempt to Upsert a Null List” in Lightning Helper Component

I have created a simple Account Input page. Once I click submit button it has to create a new account but it is not creating and also not throwing any error. And when I see in developer log it is ...
1
vote
2answers
848 views

Lightning Input type=“text”

I am working on a lightning page where I have to use lightning input type= text. And this value I have to pass JS controller for the validation check. But when I am writing code below it is working ...
0
votes
1answer
48 views

Is there a Lightning Design Tokens equivalent for Salesforce Classic (Visualforce pages)?

Lightning Design Tokens are so helpful when specifying dynamic CSS variables, which helps to greatly reduce the design maintainability cost of Lightning applications. Is there a similar concept but ...
0
votes
2answers
463 views

Picklist field does not show dropdown arrow with the force:inputField tag

Working on a form that needs to get an user's input on a picklist field. I am using the force:inputField tag to bind the input field. But the physical look of the picklist field is a little off. See ...
1
vote
1answer
197 views

create section in global action layout in lightning page

On Lead Detail Page I have created global action called 'create contact' that will openup a page called contact and configured all fields in action layout which are present in contact layout.so,this ...
2
votes
1answer
374 views

lightning overlay issue

I am trying to display table in the modalbody and modalfooter with ok and cancel button but over lay is not loading it throws some promise errors: Uncaught (in promise) TypeError: Cannot read ...
1
vote
2answers
2k views

Lightning datatable issues

I am implementing lightning:datatable with pagination and save all the selected records at once i am facing two issues: if I select row2,3,4 in the first ten records and click next it automatically ...
0
votes
1answer
27 views

Any tool/code/link/book on migration of visualforce pages and apex classes to lightning components - help needed [closed]

If anyone has done/knows regarding migration from classic code to Lightning component, requesting you to suggest the way. I would appreciate any help.
0
votes
2answers
613 views

Help building a dynamic table component in lightning

I'm trying to dynamically build a table for display and user interaction in lightning and I'm coming up against some difficulty when utilizing the $A.createComponents and trying to build multiple aura:...
0
votes
0answers
148 views

Global action drop down not working in Lightning

Somehow my drop-down for global action in lightning is not working. I have gone through the trailhead link as well as some similar questions on stack this and this. But I think I stuck with some ...
-1
votes
1answer
670 views

Activity Timeline using Lightning component

I am trying to create Activity Timeline using slds-timeline https://www.lightningdesignsystem.com/components/activity-timeline/ but getting error "Failed to save ActivityComponent.cmp: No COMPONENT ...
3
votes
1answer
4k views

Hyperlink a Record in lightning:datatable

Am trying to accomplish a POC in my project. We have a lightning Datatable using . I could generate a set of records to display on the component. But I need one column to be hyperlinked to navigate to ...
0
votes
1answer
196 views

Unable to get the value in force:outputfield on pageload

Below is my code: <aura:component controller="AccountController" implements="flexipage:availableForAllPageTypes,force:hasRecordId" access="global" > <ltng:require styles="/resource/...
0
votes
0answers
153 views

Lightning Design System UI responsive on browser window resize issue

I have developed UI with using SLDS responsive framework( https://www.lightningdesignsystem.com/ ) More over in entire application I have used lightning component ex: lightning:tabset (https://...
0
votes
1answer
590 views

How can I hide a button based on row content in a lighting:dataTable

I have a lightning:dataTable control in a lightning component I'm developing. I have a column in that dataTable of type 'button'. ​ I want to be able to hide the button in that column, based upon the ...
0
votes
1answer
35 views

Table with navigable values in Salesforce Lightning

I am new to Salesforce Lightning and I would like to make a table that has values that I could click on, and open the object details in another tab. In salesforce Classic, I did this way: <apex:...
0
votes
1answer
26 views

Custom lightning component broke the formatting (overide CSS)

So I created a custom self-registration lightning component based off a standard component by using: implements="forceCommunity:availableForAllPageTypes" Once I did that, my formatting for the ...
0
votes
1answer
218 views

Unable to use SLDS assets from Visualforce

I'm getting a 404 error when accessing any LDS assets. Am I doing something wrong? The code I'm using is taken right from the Using the Lightning Design System page within the Visualforce Developer ...
3
votes
1answer
595 views

Open multiple section at once using standard <lightning:accordion> component

Using the standard component <lightning:accordion> is it possible to open multiple sections together?
0
votes
0answers
80 views

Unable to access the static resources on the communities(Napili) page after Sign In

Unable to access the static resource on the communities(Napili) page, once the user is logged-in. Resource are loaded on un authenticated page, but fails to load in authenticated page. Resources are ...
3
votes
1answer
390 views

Scrollbar inside scrolling modal not clickable

I'm using the latest Appiphony Strike components to built a multiselect picklist inside a modal. <aura:component > <c:strike_modal title="Strike Modal" showModal="true"> <...