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
1answer
34 views

How to open a url in new tab from lightning component?

I have a carousel image component and when user clicks on the image, it should open the associated url in new tab. Currently the lightning:carouselImage "href" opens url in same window. I am trying ...
1
vote
0answers
14 views

Initials Profile Picture

I am trying create a function to display the initials of the person (not the current user) if they don't have a profile picture. I have all the initials stored in a list in my page controller. Can ...
1
vote
1answer
42 views

Lighting Components: Dynamically Call Aura Method

Is it possible for a lightning component to make a call to the method in another component by using the name of its aura:method dynamically? Or can it only be hardcoded? e.g Child component: <...
0
votes
0answers
17 views

window.opener.location.reload() not working in a lightning VF page

<apex:pageBlockButtons location="top" rendered="{!!readOnly}" title=""> <apex:actionRegion > <apex:actionStatus id="saveStatus"> ...
0
votes
0answers
27 views

How to build the dynamic search query for multiple conditions in lightning

Hi can anyone help on this, My requirement after users selection of field, operator and value on each row on click of button it will able to call a dynamic search query with all these selected fields,...
0
votes
0answers
16 views

Remove record data from cache via apex

First up: the org runs on lightning experience. Via a button, a user makes a synchronous call out to an external web service that returns a file. This file is saved to the record on which the button ...
-2
votes
0answers
15 views

lightning:unsavedChanges how to change the label and the button as “Yes” or “No”?

I am using lightning:unsavedChanges for the confirmation on unsaved changes but I need to change the button label. Also it should pop up when we are moving to another component.
1
vote
1answer
23 views

Remember user preference when opening or closing a section

I have a Component that replicates a section in a layout: <aura:component> <aura:attribute name="title" type="String"/> <div class="slds-section slds-is-open" aura:id="...
0
votes
1answer
19 views

Set Console App' Tab Icon size

I have a Console app with a custom Lightning page where I have set the tab icon and name using: workspaceAPI.setTabLabel({ tabId: focusedTabId, label: a })...
0
votes
0answers
33 views

force:recordData not able to update the records

I am using a single component for creating and adding contact records for a specific record type. The trick I am using is I am passing boolean for editMode from the parent component to the child, and ...
1
vote
1answer
47 views

How to send dynamic values into custom notification using template stored in Custom Label/ Metadata

Can anyone please give a brief idea how to implement below scenario? We have a batch class which runs every 1 hour where we are making callout and getting data from 3rd Party System and updating ...
-1
votes
0answers
47 views

why record type id field is not showing in report type of primary object is knowledge lightning

I am new to knowledge Lightning.I am creating a report type with primary object Knowledge. But I am unable to see record type id field. Any help will be appreciated.
0
votes
1answer
19 views

Issue with Specific Cell Popover inside slds datatable

My use case is to implement specific dataTable cell popOver on click. Below is the code. Using lightning:overlayLibrary base component to show popOver. It is showing popOver but only on the first row ...
0
votes
0answers
12 views

How to show uploaded image at place of file name

As i am trying to show uploaded image instead of file name.I tried this code but it is showing the image in pop up which is not the requirement.I tried another way but it was showing a broke image. ...
2
votes
0answers
14 views

'Small' form factor available for LWC in Partner Developer org but not in Partner Professional org

I have two orgs created in the Environment Hub, both on AP15. The 'Partner Developer' org actually lists 'small' as a valid factor in LWC (e.g. in Lightning Page Builder you can select 'phone'); the '...
3
votes
2answers
110 views

Combobox hiding behind footer - modal content not able scroll when overflow =initial/visible

I have a modal with a fixed height, so if the number of fields increase in the modal, scrollbar appears as expected. However I have a Combobox at the end of the form which I am not able to view the ...
0
votes
2answers
32 views

Activate Trigger From Lightning Component

I am trying to create a lightning component that allows user to select an object and activate a trigger according to the object selected, similar to process builder but I’m trying to integrate this ...
0
votes
1answer
30 views

LWC - Object OpportunityLineItemSchedule is not supported in UI API

I've created a button on opportunity page using LWC. Once the button is clicked it should create OpportunityLineItemSchedule records based on Opportunity and related OpportunityLineItem record. ...
0
votes
0answers
22 views

Lightning Carousel is adding empty Indicators to existing images when event is fired

I have two components Stage and Carousel, The stage will have 4 values (stage 1, stage 2, stage 3 and stage 4), When ever a stage is changed I am pulling Carousel images related to that "stage" from ...
0
votes
2answers
30 views

Display Aura record input page as floating window like when Edit is clicked

I have an Aura/Lightning based custom object Meeting Note record input page with Apex and JavaScript controllers. It opens correctly as a floating window when I click the Edit button, but when I click ...
1
vote
0answers
15 views

How to give Content Type while downloading attachment from url?

I am trying to download attachment from link : <a href="{!'/servlet/servlet.FileDownload?file='+attachment.Id}" target="_blank">{!attachment.name}</a> but the attachment is being ...
0
votes
0answers
29 views

Lightning Carousel component is repeating indicators if we have less than 3 images

I am creating dynamic lightning carousel, so when I have less than 3 images it is repeating the indicators. Example: Lets say if I have images img1 and img2, then in the carousel I am seeing it as ...
0
votes
0answers
26 views

Translations in Lightning Web Component

I have to build a Lighting Web component which would be exposed to the Lightning community for guest user License. I want this component to be multi-lingual. The language will be passed in the URL. ...
0
votes
0answers
12 views

React App API Patch call getting 500 error

I've got a react application running in a lightning container. Queries to the rest API via a get request work just fine, but upserting data via the patch request just gets a 500 error with no message ...
0
votes
1answer
22 views

Lightning Component in VF Page not working with Force.com Sites

First time using Components - putting it in a VisualForce page to leverage on a Force.com Site. The Component works just find on the VF page accessing when logged in (https://mydomain/apex/Testpage). ...
0
votes
2answers
31 views

API Usage Breakdown?

We are using Lightning and trying to find out if there is a way to see a breakdown of API usage by source. I have heard of a report that can be used, but it doesn't show up in the Administrative ...
-1
votes
0answers
12 views

How to open a modal without leaving the account register. (In console)

I have client object, and in your view I see related lists. When I click the edit button of the address (in the related list), a new tab for editing opens. I would like to open a modal without ...
0
votes
1answer
19 views

How can I set a Dashboard to just Specific Users?

I was just asked by my Director of Sales to set a Specific Dashboard for him and one other user. The dashboard is created, but I cannot find a way to set it to their home. I found a way to do so in ...
0
votes
1answer
61 views

Load External JS file script in Lightning Community (Head Markup not working as CORS Error is coming)

Hope you are doing great :) Could you please help us the below requirement : a. To add External JS File script in Lightning community pages, (Tried with Head Markup options, but It gives CORS (...
-1
votes
0answers
23 views

Test class giving following error System.NullPointerException: Attempt to de-reference a null object [duplicate]

we write a apex class -` public class InvokeReportExportPolicy implements TxnSecurity.EventCondition { public boolean evaluate(SObject event) { switch on event { when ReportEvent ...
0
votes
1answer
26 views

QuickActionApi - Unable to select SendEmail on custom object page

I am trying to initiate the SendEmail quick action from a button on my lightning record page. This seems to work for Account, but does not work for custom objects. Code is as follows Component <...
0
votes
1answer
16 views

Field name does not appear on highlights panel of lightning app builder?

I want to display number of open cases on Contact highlights panel. I used lightning app builder for it. Here I have renamed Contact object as Member. I inserted the field 'Open Cases' in compact ...
0
votes
1answer
23 views

Call lightning component from external site and pass query params

I am developing a payment gateway feature in salesforce application. I have created a Lightning component where I use an iFrame to redirect to the payment gateway URL. After payment is complete, I ...
0
votes
1answer
24 views

Convert Javascript button in Classic to Lightning which utilizes the AJAX toolkit

Which method is typically used to convert an on click javascript detail page button which utilizes the AJAX toolkit? Looking to call the "forwardEmails" method with the case ID and default value for ...
0
votes
1answer
34 views

How to pass values across Lightning Applications?

I have two lightning component and two lightning application. Comp1 is on app1 and Comp2 in on app2. Now, How can i pass the values from comp1 to comp2. Is it possible or I have to create one ...
0
votes
0answers
33 views

lightning:recordEditForm onLoad being called twice

I have a lightning:recordEditForm that is calling "onload" function twice, there is a parameter on the event to prevent that like we have with force:recordData? Something like: event.getParams()....
0
votes
1answer
25 views

VisualForce Page pass Paramters to Component

Now I Have a VisualForce Page , And The Third System Will Pass Three Paramters to This Page. I Want Pass the Paramaters to standard Contact view Page. But It seems No Possible to Pass Paramaters In ...
0
votes
0answers
26 views

Salesforce Flow - Custom Picklist Lightning Component - Default value not loaded

i built a Lightning Component to get a custom picklist in Salesforce Flow, so i can set the default value to the current selected value of a picklist and create custom validation rules. The component ...
0
votes
0answers
20 views

Open CTI Sceen Pop In Lightning Console

Is There Any Possible to Use Open Cti Sceen Pop to navigate to a Custom Component? In this picture , Screen pop have the method For Url. But I don't Know Component Url Address. And is it possible to ...
0
votes
1answer
35 views

Filter a picklist value in aggregate query

I have a use case where I need to show the count of only certain picklist values. So I have used aggregate query with only picklist values but how to set them each individual picklist values (type__c) ...
2
votes
1answer
60 views

Lightning Web component and Aura component performance difference due to the change in architecture

I am new to salesforce lightning web component.I did some of the example and found that lightning web component is way more faster than Aura component. This is due to the web stack architecture of ...
0
votes
0answers
15 views

While preview file I need to remove 'Show More' option Lightning

I am using $A.get('e.lightning:openFiles') to preview my file but user can edit the file details using 'show more' option. Can anyone please help how to remove it. This is the function I am calling ...
1
vote
1answer
40 views

Need to make entire section title clickable

I am using section expand collapse as described here -- http://sfdcmonkey.com/2019/03/05/create-expand-collapse-sections-salesforce-lightning/ I am able to use this, however it's only usable only ...
0
votes
0answers
24 views

Change lightning icon on click

I've looked at several different posts regarding this question and still haven't been able to find an answer. All I want to do is change the iconName of my lightning:icon component to a different icon ...
0
votes
1answer
15 views

Is it possible to move Files under Activities to Opportunities/Accounts

As Salesforce Files of Archived Activities are not displaying in Lightning, our Sales manager is asked to try an option. That is to move the Files attached to Task/Events to its associated Opportunity ...
1
vote
1answer
19 views

lightning:recordViewForm add spinner while loading data

I'm using lightning:recordViewForm and I realized that there is a bit delay. I was reading a lot here and in google but can't find any solution to this. I thought on adding a spinner on my component ...
0
votes
0answers
18 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
2answers
30 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
29 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
8 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 ...