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....

0
votes
0answers
9 views

Calling a lightning page from a url type column of lightning:datatable

I have created a lightning:datatable which have many columns but the first column is of type url. I have created a lightning page called Record_ApprovalRejection page. The Record_ApprovalRejection ...
0
votes
3answers
25 views

How to embed a expression into string

I have an iframe in my lightning component. The value of the src attribute of the iframe is half static and half dynamic e.g.: <iframe src="/apex/customPage?id= \'' + {!v.linkId} + '\' " width="...
0
votes
0answers
20 views

Related list you're trying to view isn't in the layout. Please get in touch with your administrator

I have a VF Page for Account that has the related list (Cases) added in the Vf page code. When I login in classic and click on account record, go to Cases related list and click on New case button - ...
0
votes
1answer
20 views

Is this url “https://sfIntace.visual.force.com/apex/VFpage” is Lightning or classic

I am new to Salesfore Lightning experience. I open vf page from tab in Lightning experience it open with some lightning URL. But when I open page from all visualforce pages screen, it show url like ...
0
votes
2answers
18 views

Drag and Drop - multi file upload in Custom Lightning Component

I want to create a drag and drop multi-file upload in a lightning component form. The form is displayed in a community. I have used <lightning:fileUpload label="Attach receipt" ...
0
votes
1answer
17 views

help text icon with lightning:select

The docs are very clear on how to add a help text icon. I've tried to do this using lightning:select component. This is what I have so far but it doesn't appear to be working: <lightning:...
1
vote
1answer
25 views

Look Field to Open specific Record Type Create Record Page Layout [closed]

Is there any way to Open Specific Record Type page layout from Lookup field New Record Creation "+ New Record" option in Lightning Experience? Thanks, Lalit
0
votes
2answers
33 views

Icon inside Lightning Badge

I saw on Lightning design system that there is the option to put an icon inside a Badge https://www.lightningdesignsystem.com/components/badges/#Badges-with-Icons How can i actually do it in ...
0
votes
2answers
51 views

How to get source of lightning component

I have 2 quick Action buttons, which call same lightning components. How should I know on component initialization that which Quick Action triggered lighting component?
1
vote
1answer
47 views

For lightning:input can I set my own Id attribute?

I am using aXe tool to do accessibility testing and it is giving me a red flag because it doesn't like the current value in the id attribute, that is set to "input-1". Question is how, if possible do ...
0
votes
0answers
29 views

The vertical line of “.slds-timeline__media:before” does not appear when using Activity Timeline on Lightning Component Tab page

The vertical line of ".slds-timeline__media:before" does not appear when using Activity Timeline on Lightning Component Tab page. <aura:component> <ul> <li> ...
2
votes
1answer
30 views

Lightning Accordion: changing the arrow location

In Lightning Accordion tag I need to change the location of the expand/collapse arrow so instead of it being in the left side of the title (aka the Accordion summary), it should be in the right side. ...
0
votes
1answer
47 views

How to display image in a lightning component

My files are stored in 'files' under App launcher. I have a Rich text box field 'description' in a object wherein i enter text and images. Here, the images are entered as tags. the 'src' attribute ...
0
votes
1answer
24 views

Object ProductRequest is not supported in UI API

I am using following lightning code but unfortunately, I am getting error. Can anyone please help me to fix this (I read some articles and they mentioned that this object is not supported in UI API) &...
0
votes
1answer
25 views

Dynamically update Lightning path (Chevron)

My Lightning/Salesforce Path was displaying the Chevron based on the Case Pick list field which has 15 pick list options. Every Case is unique and doesn't require all the 15 options, how can I make my ...
1
vote
1answer
25 views

how to add a custom class in table row in LDS?

I have a lightning component which contains a table. I am trying to highlight a row in red if some conditions are met. My code is like this <tr aura:id="tablerow" > </tr> I have added ...
0
votes
1answer
34 views

Run function multiple times

i am developing in lightning and i have a function in controller copyTrans : function (cmp, event, helper) { helper.copyTransaction(cmp, event); console.log('copy in controller'); } What i ...
0
votes
0answers
7 views

error in leadconvertnoworkflow VF page in Lightning

I'm getting the following error on this VF page for Lead Conversion Invalid parameter for function URLFOR Error is in expression {!URLFOR($Action.Lead.Convert, lead.id, [retURL=$CurrentPage....
0
votes
0answers
25 views

How to make lightning:progressIndicator read only?

We have a data entry form and we are using lightning:progressIndicator as a way to show their progress. However, we don't want the user to click-ahead nor do we want them to click back on the progress ...
0
votes
0answers
23 views

Lightning SLDS stylesheets on visualforce SITE

I have an issue with styling visualforce page that will be exposed as a site with lightning SLDS stylesheets. I'm using lightningStylesheets="true" on my page and if I preview it in salesforce ...
0
votes
3answers
73 views

SLDS Picklist Basics

I wanted to create a picklist for my form using SLDS. There's probably no difference between SLDS select and SLDS picklist but I wanted to use picklist this time. I found the example here: https://www....
5
votes
1answer
195 views

How to get the display density in a lightning components controller?

Is it possible to see if a user is in Comfy or Compact display density in a lightning controller? This is a new feature since Winter '19 and I cant find any documentation about this.
1
vote
1answer
70 views

Lightning Styling not displaying in one sandbox but will in another?

I am working on a visual force page that uses the slds styling. In the developer sandbox I was working on it displays fine as shows: The code has been merged into a QA environment, and with the same ...
1
vote
1answer
18 views

Why is my Lightning:Tree component not displaying anything when fed Valid JSON?

Today I have been attempting to make a lightning:tree that accurately reflects a nested list of custom objects, and it feels like I am most of the way there, but can't quite get the tree to actually ...
1
vote
1answer
21 views

Can we add Non-Black field validation in js when creating record using force:createRecord

I have created a component which has a button. onclick event on the button navigates to record create page . I have used force:createRecord for this. However I want to add a validation in js that one ...
0
votes
0answers
31 views

How can I display parent Id record when I am creating a child record from parent in Lightning custom component [duplicate]

I am trying to create a child record from parent's related list(which has custom lightning component - DataTable). When I click on 'New' from related list(to create a child record), the popup should ...
3
votes
1answer
175 views

lightning:combobox component without placeholder

I have following code which displays a list of Users in the system. It is showing the list of Users. By default the first option I see is "Select an Option" and I want the first User in the list to be ...
0
votes
1answer
30 views

how to make record as a referenceable in datatable lightning

I have the following code, which will return all the opportunities associated with the Contacts, I am getting all the oppty but the I want the returned Oppty name should be clickable and take me to ...
2
votes
0answers
169 views

Can Lightning SLDS icons be displayed in formula field without using static resources?

I want to display an icon in a formula field based on the value in another checkbox field on my object. I would like to use the standard Lightning SLDS icons here. I've found a way to achieve this ...
0
votes
1answer
60 views

show updated fields without reloading Lightning page

We are creating an INVOICE through Lightning form. Once the cx filled the form and press SAVE button, we are making a REST api call to java application and getting more details like invoice number, id ...
0
votes
0answers
50 views

Submitting Records for Approval Process with Visual Flow(Lightning Page)

I am trying to submit approval process through Flow, The intention is to request the user to fill the required fields before submitting for approval. I was referring the blog below blog content on ...
1
vote
1answer
149 views

How to dynamically add svg icons in lighting?

My case scenario is, I'm creating a list element dynamically which displays few contact names. Besides this I want to display the Account svg icon of slds too. I was wondering if it is possible to ...
3
votes
1answer
43 views

How should I import Design System React css?

I tried using Lightning Design System React doing what's under the Getting Started section. I've installed the npm modules as explained: npm install @salesforce-ux/design-system @salesforce/design-...
2
votes
0answers
32 views

Is it possible to hide the masterLabel from outputting onto the page in Salesforce Mobile?

I created a custom lightning:appHomeTemplate with custom columns and rows. However, the only thing I wanting to do now to finish this, is to not have the Label output into the app page. The Label ...
0
votes
1answer
82 views

Community Theme Full width layout

we use the napili theme which has a width of 1140px. For a specific page i created a new community layout with the following code: <aura:attribute name="column1" type="Aura.Component[]" required=...
0
votes
1answer
28 views

Using Salesforce Media Objects

I want to display an image of a user with text right next to the image. Went through SLDS and found Media Objects to fulfill my need. Been trying to implement it but the text is always under the image....
0
votes
1answer
25 views

Is it possible to use something like showHelpMessageIfInvalid() on lightning:inputFields?

I want to trigger the "complete this field" message on a lightning:inputField if it is invalid (empty value). This works fine on a normal lightning:input, but is there a way to do it on an inputField? ...
1
vote
1answer
109 views

Wrap components in lightning

I am trying to wrap components in a Salesforce Lightning tab. It seems like a fairly simple task. I want items (which are dynamically created lightning components) to be arranged in (for example) four ...
0
votes
0answers
16 views

Field dependencies in junction records - UI customization

We have a many to many association between Accounts and a custom object Publishers On the Accounts page we do see Publishers as a related list. However, Pubisher is the child of a custom object called ...
0
votes
0answers
31 views

Adding embedded lightning component visualforce page in the page layout

I want my lightning component to be visible in particular page layout. So I have created the vf page and embedded the lightning component in it. But when I go to the page layout I dont see the vf page ...
6
votes
2answers
378 views

Will Lightning Base Components fully replace SLDS?

I've noticed that certain Lightning UI features have equivalents across Base/UI Components and SLDS, such as modals. But, some don't. I haven't seen a base-component equivalent of Checkbox Buttons, ...
0
votes
2answers
130 views

lightning:dataTable action column is not rendering properly [duplicate]

I have added a lightning:dataTable within like this <lightning:card title="My Table" iconName="standard:contact"> <p class="slds-p-horizontal_small"> <lightning:...
0
votes
1answer
134 views

lightning:datatable action menu error

I'm showing a datatable with a list of opportunities. Now I want to allow for a dropdown menu of actions. When I click on the arrow to the left of the opportunity detail row, it is giving me this ...
0
votes
1answer
61 views

Converting visualforce component to lightning component is not working properly autocomplete functionaliity? [closed]

visualforce component : <apex:component controller="autoCompleteController"> <!-- JQuery Files --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"/> ...
0
votes
1answer
16 views

Lightning Exchange

Can we modify the functionality of Apps available on Lightning Exchange? Is there any possible way to modify the functionality of Apps available on Exchange? What are Visual building Tools and ...
0
votes
2answers
114 views

How to make a lightning component to have a look and feel like a single related list?

My requirement is to show all the cases related to parent object 'MTO' on case except the one case which is open .Ex there are 5 cases on MTO if I open 1 case then I should see other 4 cases on case ...
1
vote
1answer
239 views

Resizing of Lightning page that popups from Quick Action Button

I have written below code: <lightning:layout > <lightning:layoutItem padding="horizontal-medium" > <lightning:recordEditForm aura:id="recordViewForm" recordId="...
1
vote
1answer
98 views

Lightning layoutItem not rendering

Hi I'm creating a custom lightning page template. i need a header, left sidebar, 3 middle components, a right sidebar. the problem is that two of my layoutItems are not rendering properly, just NaN is ...
0
votes
0answers
28 views

Cannot open record in Iframe sized : slds-size_1-of-2

RapidApprovalCMP3 {!v.linkOfRecord} = "https://snagarkar-dev-ed.lightning.force.com/lightning/r/Account/0017F00000tTTDJQA4/view" <aura:component implements="force:appHostable,flexipage:...
0
votes
1answer
144 views

Unable to fit table into lightning component, Clickable field in datatable

I am trying to display data nicely inside a component that is place in the left section of the page record, however i am really struggling with the following issues: For some reason all of the fields ...