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.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

How to enable suggested knowledge article in Salesforce Lightning on a popup page

While creating case I enabled suggested knowledge article in classic. In below screen in subject box if I type the articles first letter all the suggested articles are coming on right side so i wants ...
0
votes
0answers
12 views

Action failed: c:ProjectCandidatesToOrderAssociation$controller$goToProject [Cannot read property 'length' of undefined]

I'm getting this error in my process. I'm using a lightning component which starts a flow Uncaught Action failed: c:ProjectCandidatesToOrderAssociation$controller$goToProject [Cannot read property '...
1
vote
1answer
17 views

lightning data table column label is not printing Id is printing

I am trying to create a lightning data table which has hyperlink columns. when i try to add a reference field in column it just showing the id. component.set('v.columns', [ { label: '...
0
votes
1answer
23 views

jQuery append not working on custom lightning component

I have a custom component that sets a table header and body dynamically with jQuery append but it's not working. I have loaded my scripts into .cmp and it's working cause I start my onInit controller ...
0
votes
0answers
4 views

Address input element in lightning flow not showing the configured country and state picklist values

i want to add address elements in lightning flow and want the country and state to show all the values that i have configured in state and country picklist. Apart from adding the values using comma ...
0
votes
1answer
11 views

Update lead record on javascript button click in lighting

I am new to salesforce lightning. I have a button in classic that update the lead status. But I am not been able to figure out how the same thing will be written in lightning. Here is my classic ...
0
votes
0answers
9 views

Lightning flow error - Works fine on desktop but fails on FSL app

I have a lightning flow that creates an object record and child records related to it. When I try to run this flow using quick action in FSL app on iPad it gives "Required fields missing: ParentId" ...
0
votes
1answer
24 views

Get index value of checkbox selected

I have a list of items that are being set on the initialization of my component. Then I'm iterating over the list of items and and for each item, I'm creating a checkbox with the description of the ...
0
votes
1answer
15 views

In lightning, developer console can I display buttons in the highlight panel based on custom field like if field is not empty?

In lightning, developer console can I display buttons in the highlight panel based on custom field like only if field is not empty display change owner button.
0
votes
0answers
17 views

Is there a way to add action icons on accordians?

I have built a standard accordion in lightning. I need to add 'action:' icons to the accordionsection. How can I achieve this? I need to move documents tag and icon to the accordion section.. My ...
1
vote
1answer
26 views

Need Help with custom types in Lightning DataTable - LWC

Here is the playground link to the code - https://developer.salesforce.com/docs/component-library/tools/playground/l_0ieW-Sm/17/edit My use case is to show popover on hover for a specific column in a ...
0
votes
1answer
24 views

Write a test class for a lightning component which overrides a standard action

I have written a Lightning Component that adds a google address lookup to a custom object. I have replaced the standard new action with a new form. How do I write a test class? I can't automate the ...
0
votes
1answer
30 views

PageReference in AuraEnabled class is not working for Lightning Quick Action

I have a Quick Action using Lightning Component on Opportunity. Based on some scenario when a service return Case ID then through Page Reference I would like to return to Case Record Page. Code : ...
1
vote
0answers
23 views

Prevent lightning Community user navigating to standard Salesforce page by hacking URL

I have a situation where community user can edit the URL and access standard Salesforce record page by using the query parameters. I want to control it. This is somewhat related to the discussion on ...
0
votes
2answers
33 views

Need to convert Classic OnClick Javascript to Lightning Component

I am very new to Salesforce (have no experince at all), so please excuse if I haven't explained the scenario correctly. I have "Send Email" button which has OnClick Javascript in Classic. The ...
0
votes
0answers
13 views

Influenced Opportunities vs Opportunity related list in Campaign layout

I'm looking to find an appropriate explanation of what is the main difference between the Influenced Opportunities vs Opportunity related list in Campaign layout. After I had enabled the Campaign ...
0
votes
0answers
18 views

isUrlAddressible navigation works from component 1 to component 2, but doesn't work from component 2 to component 3

So, I had a problem with navigating from Parent component to Child component, but it was solved. But now I have even stranger problem. So, I did navigation from Parent component to the Child one, but ...
0
votes
1answer
25 views

How to dynamically set a lookup field for the force:inputField component

I am trying to set the value of a 'force:inputField' lookup field dynamically, but it is not working. On click of the edit button, the record edit page gets open, but the Account value does not get ...
-2
votes
1answer
31 views

Auto slash(/) add functionality in lightning

How to implement the auto slash(/) add functionality in lightning input field when user enters the date manually(eg MM/DD/YYYY) and this input field should also have the functionality to choose the ...
0
votes
1answer
11 views

How to enable Stage History(Opportunity) Related List to be visible in Lightning Experience?

Stage History(Opportunity) Related List is visible in Classic only. The related Stage History list is already added to all Opportunity page layouts but it is visible only in Classic. How to enable ...
0
votes
2answers
23 views

How to pass the value to particular row in aura:iteration?

Component: <aura:iteration items="{!v.QliList}" var="Qli" indexVar="sNo"> <tr> <td><div class="slds-truncate">{!sNo+1}</div>&...
0
votes
0answers
27 views

Javascript reduce function has inconsistent behaviour [on hold]

Reduce is giving inconsistent results for sum of numbers. Consider below code: let numbers = [0.4, 0.3, 0.2, 0.1]; let sum = numbers.reduce((total, num) => (total + num), 0); console.log("sum =>...
0
votes
1answer
20 views

Lightning component for update values based on select list

I would like to create a lightning component for update field based on selected value from "select list" in lwc. I need this component in "force:lightningQuickAction" - so when user open a example ...
1
vote
0answers
13 views

How to Customize my Lightning Flow Called From Lightning component

When i give an managed package to customers i should give them the flexibility to create a new lightning flow with 'n' number of inputs and 'n' number of outputs and allow them to fill the flow name ...
0
votes
1answer
17 views

Ui input radio not working as expected

Their is a requirement for creating two ui input radio buttons although i achieve that but here iam facing a unique problem the input radio is not deselected on the selection of second one both ...
0
votes
0answers
20 views

How to hide/show particular block for specific profile user in Lightning component

we written logic to provide upload option to upload documents into sales force from community portal. Now only admin user should able to see that option, for other users Upload option should not be ...
-2
votes
1answer
13 views

How to call VF page from Lightning component picklist?

Here is my scenario, I have created a lightning component with pick-list values. I have pick-list values as Preview of Record,download Record. When i select Download Record, i want to down the record ...
2
votes
1answer
49 views

how do i create dependent picklist in lighning web component(LWC) when creating a record[SOLVED]

JS: @wire(getPicklistValues, { recordTypeId: '$objectInfo.data.defaultRecordTypeId', fieldApiName : COUNTRY_FIELD}) picklistValuescon; @wire(getPicklistValues, { ...
2
votes
1answer
55 views

Popover in Lightning Web Component (LWC)

I am trying to implement a popover in Salesforce LWC. I am able to get it work but only issue is the popover is not actually coming above the body like a modal. You can see the sample here. As you see ...
-2
votes
0answers
22 views

Create Record from external web site [on hold]

I want to create a record from a form of an external website this form will contain and a combo-box and an attachment that the user will have to attach. the record will need to be created in a ...
2
votes
0answers
18 views

Event to trigger related list data change

I see that there is a force:refereshview handler event that i can use to handle refreshview The challenge is when the related list is edited the refreshview does not fire consistently(Observed this ...
1
vote
2answers
31 views

Is it possible to only 'upload' the file using lightning:upload tag and then save it using 'Save' button?

The standard lightning component will upload the file and will have an 'Add' button once you click it, it will save the attachment. For my requirement I want user to only upload the file and then user ...
0
votes
1answer
17 views

How to make navigation to Lightning component using isUrlAddressible?

So, I had a problem with navigating from Parent component to Child component, but it was solved. But now I have even more strange problem. So, I did navigation from Parent component to the Child one, ...
3
votes
1answer
25 views

applying styles to several html templates with single css file

I have we component lets say called orderFlow. Inside there is obviously orderFlow.html template file, orderFlow.js and also I have added orderFlow.css file. Additionally I have created few html ...
0
votes
1answer
22 views

force:recordData not loading any data

I'm trying to load data using Lightning Data Service with force:recordData, but i'm not seeing any data is being displayed. Below is the code for the same. Can you someone help me where I'm doing the ...
0
votes
2answers
21 views

Lightning out App error in callback function

I had created a lightning component to upload multiple files with the help of this URL how to create upload multiple file url which is working fine in action button but when I try to call that ...
0
votes
1answer
35 views

How to create email as activity in salesforce using rest api

I am new to salesforce. In side contact, i can create new task, log a call and event using rest api. But how can i create email as contact activity using rest api?? EDIT: Creating task directly ...
0
votes
1answer
31 views

Locker Service Blocking Access to Third-Party Object

I'm running into a scenario where I can't tell if Locker is preventing accessing an API call from a third-party script that's been whitelisted. I'm using Qualtrics survey tool to poll users on our ...
3
votes
2answers
82 views

How to implement Auto-date functionality in the Lightning JS

I would like to show the auto date format like mm/dd/yy...with auto add /. I would like to implement exact same functionality shown in the below example from Fiddle. Here is the example: Fiddle.
0
votes
0answers
8 views

Migrate Chatter: Classic Partner Community to Lightning Customer Service template based Community

We have a Classic Partner Community that has Chatter Enabled and has a lot of posts over the past years. We are now trying to migrate our community to Lightning Template based Community (Customer ...
2
votes
1answer
29 views

In the LWC datatab, how to dynamically create click events

When "button1" receives 2 pieces of data returned by "APEX", "table" will have 2 lines and contain 2 'sync' buttons. Question: How do I add click events to these 2 rows of data? In JS, I can use [i] ...
0
votes
1answer
31 views

Custom modal with cancel and send again button

I need to show a custom kind of toast message where based on a fieldValue I am trying to show a modal which will have a cancel and a 'Continue' button. On cancel I want to close the modal and on '...
1
vote
0answers
25 views

Get child record values lightning web component

I am trying to get account child object contact record values by using getRecordUi in recordIds i am passing Account Record Id. I am getting a big JSON response. But in that response i am not ...
1
vote
2answers
67 views

Icon is not displayed in lwc

icon does not appear on page <span class="slds-icon_container slds-icon-doctype-xml" title="Description of icon when needed"> <svg class="slds-icon" aria-hidden="true"> <...
3
votes
1answer
163 views

Will Force.com stop working on salesforce Lightning?

I would like to know if the October 2019 switch from salesforce classic to lightning. Will the force.com pages stop working?
0
votes
0answers
18 views

Flow is not loading in Flow Builder

We have a custom app that creates a flow through apex and there's url redirect button once the flow is created. I am getting below error when i click on the redirect button. I can see the flowId (...
1
vote
0answers
19 views

Enable Lightning runtime for flows

I have a Softphone Layout that needs to call a lightning component from a flow. I wanted to call the lightning component from a Visualforce page so I could set the finish location. When I try to ...
0
votes
2answers
49 views

How to save record from a different object using nested recordEditForm

I have managed to get fields from two different objects to display in one lighting component but I am having a few problems off the back of this. When saving it will only save the main record and ...
0
votes
2answers
27 views

Aura iteration is not holding on particular selection value resetting to first value every time loop is started

<lightning:select label="Permissionset Names" onchange="{!c.doInit}" > <option>None</option> <aura:iteration items="{!v.set}" var ="d"> <option>{!d....
0
votes
0answers
16 views

GetTabInfo or TabUrl of Closed Tab in Lightning

<aura:handler event="lightning:tabClosed" action="{! c.onTabClosed }"/> ({ onTabClosed : function(component, event, helper){ var workspaceAPI = component.find("workspace"); ...