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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [lightning]

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 the user's browser. Lightning "Pages" are single page applications.

1
vote
1answer
19 views

Community User can not query FiscalYearsSetting sObject

@AuraEnabled public static List<FiscalYearSettings> getFiscalYear(){ List<FiscalYearSettings> fs=[SELECT Id,Name,StartDate,EndDate FROM FiscalYearSettings where StartDate=...
2
votes
1answer
38 views

Lightning Refresh Console Tab to New Record Type Flexipage

I have a different lightning flexipage intended for different record types. When I click a button on the page it changes the record type (using apex). When I get back from the action I want to refresh ...
1
vote
0answers
31 views

Adjsting the height of component dynamically

I have two child component A and B inside a parent component stacked one after other.Component A is supposed to be static and does not contains scroll bar.How ever its height changes depends on ...
0
votes
1answer
23 views

onclick Javascript link is not supported in lightning experience

I am just trying to open a popup window by clicking on custom link in my page layout and it seems working in salesforce classic but not in Lightning view. What i have found is few people suggested to ...
0
votes
1answer
20 views

Passing Record ID to lightning component

I am trying to implement Google Maps with lightning component and need to retrieve the record id in order to use it in the hyperlink in map marker but I am not able to access the record id in ...
1
vote
0answers
35 views

Problems including highcharts in lightning component!

I am trying to add the highcharts charts to my lightning component, for some reason it doesn't work. Posting everything here, just want to see it working. Here is the code: <aura:component ...
3
votes
1answer
27 views

Validate Merge Fields on a Lightning Email Template in Apex

Is there a way to retrieve the merge fields of a specific Lightning Email Template in Apex? Example EmailTemplate template = new EmailTemplate(); template.getMergeFields(); I would like to validate ...
0
votes
0answers
40 views

Lightning:recordForm - changing the owner in edit mode

I am using lightning:recordForm on my component that is displaying some case data along with the Owner. It's not possible to edit the owner, like it is on the standard one. Is there any way around ...
-2
votes
1answer
35 views

how to update fields of campaign using id which i got as method argument with json new value? [closed]

I have the following JSON - {"FieldHistoryTracking":[{"OldValue":"2018-12-28","ObjectName":"Campaign","NewValue":"2018-12-29","FieldName":"startdate","FieldLabel":"Start Date"},{"OldValue":"2018-12-...
0
votes
1answer
27 views

Hide div from page layout after print button click

In my lightning component, I have a div with aura:id = "hidefromPDF". On Print button click I want to hide the div from page print. I tried the following code on button click { var hidefromPDF = ...
0
votes
1answer
53 views

I want to Import a.csv file to upload in lightning component I am stuck in how to set params in js.helper I have pasted my code below

//*Apex Class* public with sharing class Ltng_Rota_Cntrl { @AuraEnabled public static wrapperclass Import_CSVFile(string nameFile,Blob contentFile,List<string> filelines,string SoeName,...
0
votes
1answer
25 views

Not able to call Custom Apex Rest API from Visual-force page in java-script

I have a requirement where I need to call my custom written Apex REST api from java-script in visualforce page, But somehow I'm getting that CORS issue which says my request has been blocked due to ...
0
votes
1answer
11 views

Lightning Design Resource

` ` Can we use lightning design resource for mapping? I want to bind the apiName dynamically so what I am doing is like, So at the time of component placement on a ...
0
votes
1answer
27 views

Change style on checkbox selection in Lightning

I have a Lightning component with HTML table, with one of the columns being a checkbox. I am trying to change table row style when the checkbox is selected, by using $A.util.toggleClass in the ...
0
votes
2answers
43 views

Access child records without using wrapper in apex controller

I have Question__c(parent) and Option__c(child) Master detail relationship. On page load I am able to pass the data to lightning component without help of any warapper class. Now on submitting the ...
1
vote
1answer
34 views

Is there any option to save/insert records automatically on close of browser in lightning component

I am working on a lightning component that stores the session of the case records if he/she leaves the browser then automatically creates the records. But is there any way to handle event and creates ...
0
votes
1answer
22 views

How to add filter when i convert current lead?

My question is when I use lightning standard convert button to convert the lead,I have to check few fields,exp:when the state,country fields are empty,I can't convert this lead.How can I add some ...
1
vote
2answers
32 views

How to Remove box icon above the search icon in lightning

I am getting the box icon above the search icon.How to remove it.Below is my code. <div class="slds-form-element slds-lookup" data-select="single"> <div class="slds-form-element__control"...
0
votes
1answer
25 views

slds grid column alignment problems!

For some time i have been trying to left align the center column, but still keep it at the center. ON the image below you can see the icons with the counts for each service, but not aligned to the ...
2
votes
1answer
48 views

SF Lightning Component issue: not able to replace a textarea with third party text editor

We need a rich text editor which supports images and word like formatting, so I did investigation and come up with a third party JS based web editor called Froala. I did initial R&D to understand ...
0
votes
0answers
21 views

Is there a way to show configurable tabs in lightning community?

I want to show configurable tabs in community but i couldnt find a way to show it in custom templates its only working when i select community with "Salesforce Tabs + Visualforce Communities" i am ...
0
votes
1answer
55 views

response.getReturnValue() as NaN from server controller response

I am getting a NaN value for response.getReturnValue() and data is not being stored. What exactly I need to do to identify an error message This is my controller ({ doSubmit : function(cmp, evt, ...
0
votes
1answer
26 views

How to hide search option from lead List view in lightning

How to hide search option from lead List view in lightning
2
votes
1answer
98 views

Experimental support for decorators is a feature that is subject to change in a future release

I've error [js] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. when I try to ...
1
vote
1answer
31 views

calendar sharing based on role or profile

I have a requirement where the calendars should be shared based on role/profiles. For eg: I have a profile named Marketing. This Marketing profile user's calendar should be shared with Sales Manager ...
0
votes
1answer
24 views

Not able to Create Quick Action on Service Contract object

Not able to create lightning quick action on standard Service Contract object. Does anybody has some information on it?
2
votes
1answer
85 views

What are these '@' symbol things in Web components [api, wire]?

While understanding code snippets provided by Salesforce. There are a few things which were confusing. Like what is @api, @wire. I googled for them, came to know they are called decorators. ...
-1
votes
0answers
30 views

Executing a VBS file by clicking a custom button in Salesforce Lightning [duplicate]

I need to come up with a custom button in lightning. Upon clicking, it should execute VBS file which opens SAP GUI. It would be highly appreciated if anyone can suggest a solution. Thank you.
0
votes
1answer
28 views

Hide Custom Buttons in Lightning but not in Classic

I have some custom buttons that I want to keep around for SF Classic but in Lightning I want them to show up as Lightning Experience Actions. I created separate Actions for them but now there are ...
0
votes
2answers
22 views

Lightning Quick Action

Iv'e created a "Create Event" quick action on Account. The quick action(Created Event) is not visible on the lightning record page. Is it possible to create a record (Event) on Account standard object,...
0
votes
1answer
37 views

Custom Lightning Component for Gmail or Outlook Capability

I have the following business requirements for sending email from Salesforce and I'm wondering if I can accomplish this by building custom components for the email application pane in Lightning: ...
0
votes
1answer
15 views

Not able to push records to javascript array to use it in the component!

I am trying to push data in the controller variable to eventually push it onto the component attribute variable. As of the now the record gets pushed but it clears the previous record that was in ...
1
vote
1answer
25 views

Accept Event and Decline Event buttons not present in Lightning Experience

I have Lightning Sync configured and when I open an Event as an invitee and then I want to either accept or decline the invitation, the buttons to do this are not visible. When I switch to Classic, ...
0
votes
1answer
32 views

Lightning email can't enter message

when I click on email tab I only see related and no way to enter message. Also the icons for templates are missing, See the following:
0
votes
1answer
25 views

Unexpected token: “” at column issue in lightning component markup

I am getting Unexpected token: "" at column issue in lightning component markup. I am trying to concatenate values of the aura:attribute. According to the documentation: + | 'Title: ' + v.note....
1
vote
1answer
37 views

Redirect to custom object tab in lightning

I have created custom tabs inside an object's flexipage and I wonder if there's a way to redirect via js or apex to this custom tab. For example I want to be redirected to 'Oferta' tab after doing ...
1
vote
1answer
60 views

Override Save Button in Lightning Modal

My goal is to override the save button to call out to an external service synchronously. I understand I have to create a custom VisualForce page or Lightning component (I'm going to use the latter). ...
0
votes
1answer
26 views

lightning:select onchange to access other field of object array

I have lightning component which contains picklist which holds list of Assets and onchange function i need to access other fields of object which returns from Apex controller. Can you please help me ...
1
vote
1answer
41 views

How to change Lightning:Tab label dynamically?

I want to change label for tab dynamically, but that's not working. Please find the related code below: Component <lightning:tab label="test1" id="tabId"> JS Controller component.find("tabId"...
2
votes
1answer
56 views

Platform Event - lightning:empApi

I am using platform event and subscribing them in a lightning component. When i use my component as standalone lightning app or use it on lightning record page, the components subscribe well to the ...
1
vote
1answer
245 views

Unable to run Salesforce lightning readiness report

When I try to run the lightnig readiness report in the trailhead playground for Lightning Experience Rollout Specialist Challenge-1, I am getting the below error. I have tried running the report ...
0
votes
0answers
15 views

Override delete link in lightning Account related list

I am trying to override the delete button of related list of custom object on account page layout. However the override option does not show lightning component that can be used to override. Only VF ...
0
votes
0answers
15 views

Is there any way to insert favorites in salesforce lightning for a User

From the release note we can see we can use the below rest api to create an favorite. /services/data/v43.0/ui-api/favorites My question is how can I do that for a list of users, that is to push new ...
4
votes
0answers
117 views

lightning:recordEditForm issues onload and onsubmit function

I am frustrated with lightning:recordEditForm. Here is the description of the issue: Problem statement: I want to have a form where user can select fields of a custom object "Opportunity_Product__c"...
0
votes
0answers
21 views

How to prepopulate an lightning:duallistbox each time it is rendered?

Here is my use case: I have a list of teams (being iterated) and each team has team members. I have an aura:iteration with an "add team members" button for each row of the team. When the add team ...
0
votes
1answer
37 views

Parsing error: Unexpected token urlEvent : Source

I'm getting the following error message while attempting to save a controller that is used to navigate to a lightning page (knowledge topic) in lightning communities. Can anyone assist? Error and ...
0
votes
1answer
48 views

Take 20 - Refreshing Page after Update

I've posted a version of this question the other day but I've made some changes and I think I'm almost there. Originally, my component was not getting refreshed at all. I reworked it. I have a ...
0
votes
0answers
31 views

Invoke Lightning Out component from Visual Force Page

I have 2 existing VFP pages (Page 1 and page 2 ) which are super complex and we are moving to LEX. When page 1 Loads, it has 2 buttons, Next and Cancel. When Next button is clicked, it is moving to ...
0
votes
0answers
17 views

Unable to login to org after registering my domain and deploying it to users

For previewing a lightning app I started with registering for my domain and deploying it to users. After this when everytime I try to preview the lightning app it kicks me back to the login page ...
0
votes
1answer
43 views

Predefined picklist value in action layout editor

I'm trying to create a quick action that works as an action layout editor with predefined values. One of the fields I can't fill is picklist type and when I try setting his value with another picklist ...