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

This tag is for questions related to the "Lightning Experience" which comprises a number of elements around a new User Interface on the Salesforce Platform. While it can still be used in a server side MVC environment, it is primarily a MV UI where the Controller is JavaScript based operating from ...

3
votes
2answers
31 views

How can I make a lightning component change as the underlying data changes without refreshing?

I'm writing a lightning page that allows two players to remotely play chess through the same lightning page. The page uses the aura framework. For what I've already implemented, the Game__c object ...
1
vote
1answer
13 views

Second <aura:iteration> not working with object/array datasource

I have a Lightning component with two <aura:iteration> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="invoices" type="Object" /> <aura:...
-1
votes
0answers
21 views

service workers in salesforce

Hey I am building a salesforce lightning application to present html slide shows with images and videos. I would like to store the assets on the device so that the presentation can still be shown ...
0
votes
1answer
22 views

Is it possible to access a related list of data using force:recordData

Is it possible to display a list of related records using <force:recordData as the data source? Example: <aura:attribute name="record" type="Object" /> <aura:attribute name="targetRecord"...
0
votes
1answer
21 views

Add row insted of PopUp for new record

I have a custom object in which I can add a record and it will be shown as a row. When clicking on New a pop up shows up: And when this record is saved it is displayed as follow: Now my ...
0
votes
0answers
17 views

Lightning Data Service - Creating Record Error after Validation hits

I'm having an issue with saving a created record on a custom object. What is weird is that it works with another custom object I created. Basically what is happening is that it throws a validation ...
0
votes
2answers
34 views

Parsing error: Unexpected token in below code of in Lightining controller

({ doInit : function(component, event, helper) { component.set(v.columns[ {label: 'Department ID', fieldName: 'DepartmentID', type: 'Auto Number'}, {label: '...
0
votes
0answers
21 views

aura:handler event=“force:refreshView” Not refreshing after update record

I have a lightning component which show different buttons in function of the value of the status of my Contract Example : status:"draft" Component display the button :"send for approval" status:"...
1
vote
1answer
31 views

Multiline toast message

I want to be able to make a toast message have two lines of information: When I look in the documentation, I don't see anything that specifies how to add details to the message, the way we see toast ...
0
votes
0answers
6 views

Custom Search Results on Add to Campaign for Lead [on hold]

I have a request to change the search results on the Add to Campaign functionality on the Lead to fit a certain set of criteria (Is Active = true and Type <> not blank). This will be done in ...
0
votes
0answers
8 views

Not getting notifications in notification center on approval process

We have an approval process where when a record is sent for approval (to a certain user), the user gets a notification in the SF notification center on top. This works flawlessly on our staging ...
1
vote
0answers
18 views

lightning:recordViewForm throwing error if update records fetched from server

I have a use case in which I have to display Opportunity fields(stored in custom metadata type) using lightning:recordViewForm. On initial load I do API call which returns Opportunity Id and some ...
0
votes
0answers
18 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
27 views

Lightning Data Service Change Boolean

I am having trouble with LDS trying to load a page with fields tied to checkbox values. I am trying to display the boolean values as radio buttons and everything is loading correctly. However, the ...
0
votes
1answer
21 views

Type in lightning navigation

In the following code what is passed to type key? var pageRef = { type: 'custom__recordPage', // What is type here? attributes: { actionName: 'view', ...
1
vote
0answers
38 views

Issue with Lightning:input and currency formatter

I'm creating a lightning component with a lightning:input, but I have an issue with decimal places and currency formatter. This is my code: <lightning:input name="foo" value="foo" type="number" ...
0
votes
1answer
23 views

How to update the only modified records in aura:iteration using index

Is there any way to update only modified records in the list that is iterated through aura:iteration. I am trying to get index at row level using event.currentTarget. But event.currentTarget is ...
1
vote
1answer
12 views

Lightning Button Variant for “outline-brand”

I'm trying to apply a specific variant to a lightning button. Lightning Design System says there is a button variation called outline-brand. It applies the slds-button_outline-brand class to the ...
4
votes
0answers
24 views

How does one get the active app in Lightning?

In Classic, one can use code like this to determine the app the current user is currently working in public static String getActiveTab(){ String tabLabel; for(Schema.DescribeTabSetResult i : ...
-3
votes
0answers
44 views

Deselect a value from custom multiselect picklist based on a condition [on hold]

i have "All" value in my picklist. if i select any other value, i need to deselect the all value in the picklist. Below is my Lightning component code: Controller ({ doInit: function(component, ...
0
votes
1answer
9 views

Adding Different Padding values on lightning:layoutItem

Is there a way to apply more than one padding value to the lightning:layoutItem component? The examples in the documentation only show one value: <lightning:layoutItem padding="around-small"> ...
0
votes
0answers
14 views

Trying to use empAPI on visualforce [duplicate]

I am trying to use the empAPI component on my visualforce page. I am aware that the empiAPI is a lightning component but I was wondering if I was able to call that component in a visual force page. ...
1
vote
1answer
20 views

Custom Button - Close the Status for Cases in Lightning Experience

I am struggling with the following task: 1) I need to create a custom button "Close the status", that closes the status for the Case and 2) it should be located at the same position as on the ...
0
votes
0answers
10 views

Field Service Lightning Mobile Notifications

I'm currently using Salesforce, Field Service Lightning. When I assign Service Appointments to the technicians they do not receive notifications about them in their phones, even thought the ...
2
votes
1answer
18 views

Generating reports through custom link which works in Lightning as well as Classic

I want to create a custom link to navigate to a report mentioned based on the parameter passed to it but for creating a custom link which navigates to a report in Classic we need to pass the parameter ...
0
votes
0answers
15 views

Component not initializing with a call to billingCountry

My component is not initialing if I use as a field Account__r.BillingCountry in the javascript controller, to pass it as a parameter to the controller. This is my partial code: <aura:component ...
0
votes
1answer
18 views

Convert JavaScript button for lightning!

I have a JavaScript button which works fine in classic but doesn't show up in lightning, my guess that JavaScript buttons are not supported in lightning, I couldn't convert it using the converter ...
2
votes
1answer
21 views

Application Event Returning null in Production but works in Sandbox

Ok, this has been driving me nuts for the past couple of hours and I'm at my wits end. I created a custom application event in a sandbox and deployed it to production. In the sandbox I can call it all ...
0
votes
0answers
12 views

Users are not able to access the desktop view on the Mobile Devices/ Tablets for the community portal?

How can I give them Desktop view access to Partner"community" users in Tablet/Mobile devices Browsers. ex: need to show entire calender access in home page like desktop view and need to show ...
0
votes
0answers
9 views

Can we open a visualforce page in a new window or tab in visaulforce page in lightning experience? [duplicate]

In Classic we use window.open() to open a window in new window/tab. But window.open() open page with classic URL(say https://.visual.force.com/apex/VFpage). Is this valid in Lightning experience. I ...
0
votes
0answers
21 views

TEXT () function not working in URLFOR() function

I have a button , which on click is doing the following function. The problem is i am not getting prodFamily= TEXT(Product2.Family) in the URL. Product2.Family is a picklist. IS the syntax incorrect. ...
0
votes
1answer
30 views

How to create a PDF/A document in sfdc [on hold]

I want to create a PDF/A document in VF page or Lightning. I tried and researched on it, but failed to do so. Can any one help me on that.
0
votes
0answers
14 views

Error - Lightning component [Cannot read property 'NIF__c' of undefined]

I'm trying to access a field: NIF__c in a Account, being the account a lookup relationship with CreditInfo_Alerts. The component throws an error if I use both Account__r.Nif__c or Account__c.NIF__c. ...
0
votes
0answers
19 views

Restrict picklist values fetched in lightning component depending on record type [duplicate]

I have a lightning component which displays picklist values in lightning:input. I am using the following apex code to query picklist values and put it in the map @AuraEnabled public static List<...
0
votes
0answers
21 views

Input value binding lightning

Why cannot I bind quantity attribute with input tag?Like in the below code: <aura:attribute name="quantity" type="Integer"/> <input type="number" onblur="{!c.quant}" class="form-control" id=...
3
votes
0answers
28 views

getReference databinding for maps

seems I have found a bug which prevents data binding in case of arrayed Maps. Maybe you can help me how to get around this. I have a list of Custom Objects, I iterate over. Each of the components, I ...
0
votes
1answer
21 views

Visualforce Render Details Tab as PDF - Opens Blank PDF

I want to open case details in PDF view when clicking on custom button in Lightning. I have a custom button(added it to standard layout) with Content Source Visualforce Page. Below is my VF Code: &...
0
votes
0answers
31 views

Upload File to Specific Account via REST API

I've found how I can upload a file to the Files section within Salesforce (by way of the /connect/files/users/userId route); however, I can't upload directly to an Account's File section. Here's ...
5
votes
1answer
32 views

Recursive Call in controller Lightning

I want to make recursive call in js controller on my lightning component.. Following is my js controller but I am getting an error as 'callback' must be a valid Function check : function(...
0
votes
2answers
22 views

Append files to the first upload in <lightning:input type=“file”>

I am using the following code in my lightning component to upload multiple files <lightning:input aura:id="fileId" onchange="{!c.handleUploadFinished}" type="file" name="file" label="Upload ...
0
votes
0answers
27 views

lightning:input type=“datetime-local” is adding the current user timezone value when mapping the datetime in datetime attribute

I have a custom calendar show below in picture. Using the calendar I need to book appointments for my user. When I click on the available slot I need fetch the date and time from the calendar and ...
0
votes
0answers
10 views

Compact layout overides my Lightning component css

I have an important issue with the Winter 19 Release. I have a lightning component inserted inside the Page Layout using a Visualforce with LightningOut. However, when I change to the new Display ...
1
vote
4answers
68 views

How to update a record in a trigger with value from a REST API?

When an account is saved I need to update it with value from a REST API. I though my approach would work but I'm getting the following compilation errors. Method does not exist or incorrect signature:...
0
votes
1answer
32 views

For multi-file upload same file being uploaded twice

I am using the following to upload multiple files in Salesforce custom lightning component. http://sfdcmonkey.com/2017/09/25/file-upload-lightning-component I my component, I have the following code ...
0
votes
0answers
23 views

Session At Server Side Salesforce [closed]

Does Salesforce Lightning support Sessions at server site?I want to provide login functionality to the users and want to store the email of the user after successfull login in session variable
0
votes
2answers
17 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" ...
1
vote
1answer
14 views

Fields depending on Lead status

In Leads, I need to show/hide some fields depending on Lead status. Is there any way to do that without creation of a Lightning app or visualforce page ?
1
vote
1answer
26 views

What impact have on performance of page loading when we use multiple Lightning:RecordForm in a single component

We are using multiple lightning:recordForm in different aura:if for the different condition in a single custom Lightning Component for showing different field. Is it the best practice to use ...
0
votes
0answers
30 views

lightning:map doesnt work on callout in init

When I try to set location from data that I'm fetching during init map is just not rendering at all. I tried to move whole stuff into onRender but it also fails (goes into infinite loop). Anyone have ...
0
votes
1answer
15 views

Redirect to a *specific* Lightning Record Page

I have a number of Lightning Record Pages on the Account object, is it possible via apex/javascript/any other means to redirect to different record pages based on some specified criteria? Google hasn'...