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.

0
votes
0answers
14 views

How to create Actions(Buttons, Links, and Actions) that opens visualforce page in same window and not as modal?

By default clicking on an Action(Visualforce Page) opens the page in Modal. However in Salesforce CPQ, clicking on 'Edit Line Items' action on Quote opens a visualforce page in same window. How do we ...
0
votes
0answers
15 views

Unable to view task information in Lightning as we can view in classic

We facing a Page cannot find error in Lightning view of a Task record. But we can see this task in Classic view. Please find the screen shot provided below. The above is the classic view. This is ...
2
votes
0answers
28 views

Hiding/Removing Quick Actions

I am in Lightning and I am trying to remove an option from the quick actions of a list view for Task Object. The object settings on task isn't available for me to uncheck 'Delete' option on a profile ...
0
votes
1answer
19 views

How to call VF on the Detail Button from Opportunity

Classic: document.location="/apex/CreateCaseRequest?oppid={!Opportunity.Id}"; I created a new Button for Lightning : did not work {!URLFOR('apex/CreateCaseRequest', null, [ SourceID = ...
0
votes
0answers
20 views

lightning:recordViewForm unable to display for guest community users

asking does recordViewForm in communities only work display if the user is logged into Salesforce? I can't seem to get my output fields to display for a guest user. They're displayed and fine for a ...
3
votes
3answers
415 views

Storable Action - System.LimitException: Too many DML statements: 1

@AuraEnabled(cacheable=true) public static String deleteContacts(List<String> contactIds) { List<Contact> returnList = new List<Contact> (); String query = ' SELECT Id,Name, ...
0
votes
2answers
26 views

iFrame in Lighning Component errored out

I have a lightning component with iFrame. I a getting the 'sameorigin' issue. am I missing anything? Lightning Component: <aura:component implements="flexipage:availableForAllPageTypes, ...
0
votes
2answers
36 views

how to access object values in lightning component

I want to render a table dynamically in lightning. I have a list of data of transaction (Custom object) and list of string which contains API name which data i want to render. I have created a child ...
0
votes
1answer
43 views

How can I call lightning component from Quick Action?

I have a lightning page.I click Edit Page. Now there are multiple sections in which Actions are added. Now I have to add a button / link which will call a custom lightning component. I have attached ...
0
votes
0answers
15 views

Dashboard in lightning is not displaying the x-axis month in correct sequence

We have a created a Dashboard in lightning however the dashboard is displaying the x-axis revenue data in wrong sequence ,Please find the below image. But, In classic it is showing the correct order, ...
0
votes
1answer
23 views

How to query pending server-call actions made from Lightning Controller?

I've been searching through the documentation but I couldn't find anything explaining how to query pending server-call actions made from my lightning component controller. I can debug using the ...
0
votes
0answers
18 views

Passing Component Attribute to Visualforce Page

I need to allow a user to save or print a PDF from a component. My understanding is that I need to utilize a Visualforce Page and embed the component into that page. I have that in place but I'm ...
0
votes
1answer
26 views

How to remove Lightning Component Button from a page under certain conditions?

I have a button on a custom object which was built as a lightning component. I want to remove the button once the custom object has a Status updated to 'Completed'. Do I do this in code or is there a ...
3
votes
3answers
507 views

How much do new Releases impact your orgs?

Recently I was asked to create an excel sheet for my company of all the relevant features Salesforce has added in the Spring Release 19' Now someone is asking me to go through one of our orgs and let ...
0
votes
2answers
39 views

Delete an array element using event.getSource().get(“v.name”)

I try to get index, but it's always -1. JS: close : function(component, event, helper) { let vacancies = component.get("v.vacancies"); //an array let vacancy = event.getSource().get("v.name"...
0
votes
1answer
19 views

Fetch current lightning URL

I want to understand if there is any way to fetch the current lightning component url in salesforce and navigate to it I am using window.location.href = window.location.pathname; in my lightning ...
0
votes
1answer
22 views

On record edit, fields value are not populating on modal

when click on the edit button modal is showing and in that modal fields values are not populating when i check debug and console.log record id is showing and set the contact value in attribute. Apex ...
0
votes
0answers
17 views

Dependant picklist in VF Page with or without using apex controller [duplicate]

I have a custom object and it has two picklists. One of them is dependant on the other. I'm supposed to put these on a vf page. The issue I'm having is that the values of the secondary picklist are ...
-1
votes
3answers
42 views

How to access <ui:inputTextArea in helper.js for a component

In my component, I have ui:inputtextarea field defined as below <ui:inputTextArea aura:id="generatedLinks" label="Links" value="" rows="5" /> In my controller, I'm trying to call getElement ...
1
vote
1answer
28 views

Lightning components - Initiating App attribute with controller - Issues with format and transmission

I'm Working on Lightning components I would like to add some values in my App, using its controller (aura:handler) But it doesn't work at all, so the default values of my component is displayed at ...
1
vote
1answer
32 views

Product: You can't view this item in Lightning Experience (Salesforce1 / Mobile)

I have a custom list of Products which appear in Salesforce in both mobile and desktop. When the user clicks on the button in the list: <lightning:button label="{!r.Name}" value="{!r.Id}" onclick=...
0
votes
1answer
28 views

Array with saving previous objects in Lightning

I need to make an array for iteration selected objs in future. But when I push needed element, it updates. It's because I always call a new var: var objs = []; How can I add the element right? My ...
0
votes
0answers
19 views

How to implement managed package interface?

I have installed a manage package in my sales force org. Package has given an interface to override/add custom business logic. It was working great with the below code. global with sharing class ...
0
votes
0answers
28 views

Uncaught Error in $A.getCallback() [chartDataProviderName is not valid] Callback failed: MyController/ACTION$getChartData

Hi I am getting the following error. Uncaught Error in $A.getCallback() [chartDataProviderName is not valid] Callback failed: apex://MyController/ACTION$getChartData .cmp file <aura:...
0
votes
1answer
20 views

Lightning components not added as dependency in lightning out app are visible to external app

I'm working on lightning out app to authenticate and expose few lightning components for an external node app. OAuth Access Token is used to authenticate user. It seems to be working fine just that ...
1
vote
1answer
45 views

Convert Lead button working in Lightning and Sandbox but not Classic

The Convert Lead button has suddenly stopped working in Classic. The button is on the lead page but when clicked nothing happens. No changes have been made to permissions and I've rechecked them all. ...
0
votes
0answers
19 views

Lightning: Standard events are not firing in some Sandboxes

I have created a custom lightning component for users to create new Case from the Account related tab. However standard events such as "navigateToSObject", "navigateToObjectHome" are not firing after ...
7
votes
1answer
61 views

Canvas App (or equivalent) for Lightning Web Components

We are currently using the force:canvasApp lightning component to embed an external site securely into Salesforce. The Spring '19 release is introducing Lightning Web Components as the future of ...
1
vote
1answer
30 views

Make a Lightning Button Download a .html Report

I am trying to create a .html file using Apex and when a user clicks a button on the front-end, they can download the .html file. Below is the code I have and when I am loading the component and ...
2
votes
0answers
94 views

Programmatically perform validation on Lightning Components

I am trying to write a JavaScript "user journey" test to go through several pages of a flow and eventually assert on the output. I'm getting tripped up because a validation error is preventing me ...
0
votes
0answers
21 views

WorkspaceAPI Tab/Subtab IsOpen()

As per workspaceAPI document we don't have any method which checks if any tab/subtab is already opened before opening a new one. Document for getTabInfo() https://developer.salesforce.com/docs/atlas....
0
votes
1answer
35 views

Passing Values using $Lightning.createComponent

My overall goal is to export my component data to a format that I can save it. I found this article (https://cloudmatters.blog/2018/11/04/lighting-out-visualforce-lightning-printing/) and was trying ...
0
votes
1answer
26 views

Reload Modal Panel of Quick Action (Lightning Component)

I have a Quick Action with a lightning component, it's a form for the creation of records. I make a button (Save & New) in the modal panel, but i don't know how to reload the entire form or clear ...
0
votes
0answers
21 views

Could not find service for valueType: Symbol(uiapi.RecordRepresentation)

The below message is coming randomly on Opportunity Record page on Edge only in Lightning. It is not happening on Chrome and IE. We have a custom Lightning component on Opportunity Home page.It has ...
0
votes
1answer
28 views

How to test Lightning component?

Since I am QA I have a question. How to test the Lightning component? I know for sure that: 1) Check the design attributes 2) Is the component displayed on the page?   And what else and how else can ...
0
votes
0answers
40 views

Javascript issue due to spring 19 release

Facing one javascript error (reportFailedAction) after spring 19 on Salesforce community. This error stops navigation between different pages within the community and sometimes occurs on button click. ...
0
votes
1answer
21 views

Using Flow Designer, I'm trying to iterate through a list of items and put the value of a field in a list separated by a semi-colon

I'm iterating through a collection of child object records and grabbing the values of 3 different fields and I'm adding them to one field on the Master (Asset Roll-up). As I assign the child object's ...
3
votes
0answers
49 views

lightning:recordEditForm. Override submit retrieve undefined on event.getParam('fields')

I had a working code on Winter 18 which override the standard submit event on recordEditForm component but it is not working on Spring 19. When I try to retrieve fields using event.getParam('fields'); ...
2
votes
1answer
43 views

Primary Contact Role is getting saved without role in Lightning

When you mark a Contact as primary while adding it as Opportunity contact role in Lightning, It allows to save even without assigning a role to the primary Contact. When we try the same thing in ...
2
votes
1answer
46 views

Non-http url link from HYPERLINK('notes://example.com', 'View') is not opening

We have a text formula field with following code: HYPERLINK("notes://example.com", "View") When using Lightning Experience, thin link is not redirecting to address. In Classic Experience new tab is ...
0
votes
0answers
20 views

record edit form onSubmit is not called after installing component through package in another sandbox from a sandbox

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="...
1
vote
0answers
31 views

Get the fields and values form recordEditForm before submit the form

I am using lightning:recordEditForm to generate a form for cloning opportunity record. currently, there is no functionality to clone a record using lightning:recordEditForm. So what Approach I am ...
0
votes
0answers
21 views

force:inputfield is not displayed on the modal popup

I have created modal in component and added <force:inputField inside it, but it is not displayed on the modal popup. But, if the same <force:inputField is added in the component, then it ...
0
votes
0answers
11 views

How to write audio tag in lightning component below is my tag but the play button is disabled?

<audio src="https://santhoshsep-dev-ed.lightning.force.com/servlet/servlet.FileDownload?file=A.Id" controls="controls" > </audio> this tag is the issue Let me know what the tag works to ...
2
votes
1answer
27 views

Unable to replace a “force:navigateToURL” with lightning:navigation or force:navigateToSObject

We are currently trying to replace an existing working code with another "future proof" one. Basically we have a stand alone app that's invoked whenever a user clicks on a button within a lightning ...
0
votes
0answers
25 views

Make field larger so more text displays

I have a recordEditForm for adding new records. In that form I have inputfields. One of the fields is for a description and that tends to get long. Any way to make the field display more real ...
0
votes
1answer
19 views

approach to check Lightning Readiness for Managed Packages [closed]

What should be the flow of checking whether managed packages are lightning ready?
0
votes
1answer
19 views

Browser tab title is “Loading” while opening a subtab

I am using workspaceAPI to open a subtab from a parent tab. I am using setTabLabel to set the subtab label, but I have noticed the browser tab displayed as "Loading". Any suggestion? workspaceAPI ...
-1
votes
1answer
32 views

Failed to save question1Controller.js: ESLINT_ERROR: {c:question1 - CONTROLLER} line:col [20:9] --> Parsing error: Unexpected token else : Source [closed]

design file <design:component> <design:attribute name="questionText" label="Question Text" description="Provide the question text here." /> <design:...
1
vote
3answers
44 views

Can't get attribute from clicking on a link in a lightning component

I have lightning component and a list of records I have to display. For each record, I have to display a lightning button which trigger a method in the controller to fire another lightning component. ...