Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen 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.

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

Lightning input type issue

I have created a lightning input with a dynamic input type . It's creating such a wried issue when I changed the value of 'v.type' number to text. The main problem is that when I click on the '...
0
votes
1answer
42 views

Lightning Componenet Pagination Performance

Hey having some performance issues with pagination in a lightning component. The actual functionality works correctly the problem I am noticing is its slow to change pages. From what I can tell the ...
4
votes
3answers
411 views

Is Salesforce Classic being deprecated?

I've been hearing chatter that SF is going to deprecate Classic this year (2019) Is this true? Been googling and can't get a definite answer.
0
votes
0answers
11 views

Delete recordId when passing parameter to child aura component

I create a new meeting note object with custom aura / apex/ js code. It creates a New input form if it does not get a recordId, and Edit form if it gets one. Now I want to reuse it, creating a ...
0
votes
0answers
8 views

How to automatically add fields to field set and in picklist?

How can you automatically add newly created field of particular data type in the field set and create a new picklist value with its field label?
1
vote
1answer
31 views

Where to find connected VS Code apps in setup

I tried finding the connected VS Code apps in Connected Apps OAuth Usage and Manage Connected Apps but could not find it. I have below queries: Where to find which all VS Code apps (and which systems)...
0
votes
1answer
18 views

URL error when invoking an aura:application

We have an aura:application that wraps an LWC component. <aura:application extends="force:slds" implements="ltng:allowGuestAccess"> <aura:attribute name="recordId" type="String"/> ...
0
votes
0answers
11 views

update dashboard every one hour

How can we update dashboard every one hour? I tried to update it from subscribe button, but normal subscribe makes it possible to update dashboard automatically only one time in one day. I wanna ...
0
votes
1answer
56 views

Refresh Single Lightning Component, Not Entire Page

I have a page that contains two lightning components. One is a calendar, the other is a list view. On the calendar lightning component, a user will click, a hidden modal will be displayed so the ...
2
votes
1answer
32 views

How to switch to lightning in mobile browser chrome

When I use Chrome on my laptop I use Lighting and I have no problem. When I use the Salesforce App I have no problem. But when I use the Salesforce on my mobile device(via browser Chrome), I get ...
2
votes
1answer
68 views

Salesforce lightning component - Close original sub tab and open new Sub tab

I'm trying to accomplish the following: I have quick action that fires lightning component. This quick action is under opportunity and what i'm trying to achieve is the following: Once the button is ...
-1
votes
1answer
30 views

How to use IF Statements in Lightning Component?

I am very new to Lightning, I have checked OR,AND condition in Lightning Components.But I dont know how to write below If statements in Lightning Components. Vfpage to Lightning. <apex:column ...
2
votes
1answer
81 views

How to configure Salesforce Confetti Celebration when lead is converted to opportunity?

I need to show Salesforce Confetti Celebration when lead is converted like when we complete trailhead badges. We are converting lead from code. How to implement this ?
0
votes
0answers
55 views

LWC custom case record type selection opening in a separate tab in Console App

We have one custom LWC component to for record type selection which overrides 'New' case button. After selecting the record type and clicking continue, new case record creation popup is opening on ...
0
votes
1answer
23 views

Custom Salesforce Registration Lightning Comp For Community User

How to create a custom lightning Registration component for the community user with Name, Email, password & confirm password for the community user.
0
votes
0answers
64 views

Parsing error: Expecting Unicode escape sequence \uXXXX in Salesforce Lightning

I have created a lightning component and I'm querying in the JavaScript controller. While I'm saving I'm getting the following error. Parsing error: Expecting Unicode escape sequence \uXXXX Orginial ...
1
vote
1answer
68 views

Display data in Column using LWC

I am trying to create a view to show activity information. However the below code is not displaying any information, only header is showing. Please help. HTML Component : <template> <...
0
votes
1answer
33 views

How to expose visual force page using iframe on external website

I have been trying load a visualforce page using an iframe on an external company website. I have followed all the documentation to the best of my ability without luck. I understand that I must use ...
0
votes
0answers
29 views

Filter soql step when embedded in lightning page

I have created a visualization in Analytics Studio for a custom object (e.g., CustomObject__c) using a SOQL to get access to the raw data. I now want to embed the visualization in a record page of ...
0
votes
1answer
31 views

How to get current logged in user's omni -channel assigned work queue in lightning experience or apex or in VisualForce Page

I want to fetch assigned cases or leads to a logged user in user in Omni-Channel, by using Lightning component or apex or visual force pages. I tried many methods but I am not getting a response in ...
0
votes
0answers
11 views

Save flattened calculated field to object

I have a flattened datatable column like this one simplified: helper: newLine.amount = newLine.price__c * newLine.qty__c; Now i need to create a new record on the SF Object with this "amount" value....
0
votes
1answer
19 views

Lightning Community Builder deployment

HI I have Community Builder with 20 Plus pages, Now I have to deploy it to another sandboxes, Not able to add it change sets. Is it possible to deploy my existing community builder along with my pages ...
0
votes
1answer
39 views

lightning:select not able to update values

I am not able to show value which is in the record empRecord.State__c even thought the logs show that it is retrieving properly. Here is my code - <lightning:select ...
3
votes
1answer
72 views

Overriding the redirect on saving force:createRecord on Salesforce Lightning

I need to override the redirect on save of a force:createRecord lightning component. var eve = $A.get("e.force:createRecord"); eve.setParams({ "entityApiName": "Opportunity", "...
0
votes
0answers
13 views

Hyperlink to related list which works in classic doesnt work in lightning

We have a Image based formula field which hyperlinks to a related list is working in classic but not in Lightning. The Related list is in different tab than the Image field which could be a reason. ...
0
votes
0answers
17 views

How to display knowledge Articles for community users using lightning component?

I am trying to display knowledge articles on lightning component. When I use same query in developer console its working fine. I have given Knowledge Article object permission to community users, but ...
2
votes
3answers
221 views

In apex, how to replace the value in the string

This is my test code String soqlStr = '1 OR 2 AND 3'; List<String> strList = new List<String>(); strList.add('Name = a'); strList.add('City = b'); strList.add('Birthdate__c = c'); String ...
1
vote
1answer
46 views

How to open Lightning carousel image href link in new tab?

I have a carousel component, when we click on image it should open in new tab. But with standard functionality it is opening in same window. I tried using onclick function but it is not working. How ...
3
votes
2answers
41 views

Using $A.util.addClass() on Multiple Elements at Once

Is there a way to add $A.util.addClass() on multiple elements all at once, or do I always need to declare it for each individual element? For the elements below I want to add or remove a class, is ...
0
votes
0answers
21 views

user with Manage Public Lightning Email Templates can not create email template

I am System Admin and create Permission sets with Manage Public Lightning Email Templates and Create Folders for Lightning Email Templates this permission. Create or New button is not available in ...
0
votes
0answers
15 views

Community VisualForce Login Page is not displaying

I am including my own visualforce page as the community login page but its only getting displayed when the user is logged in the developer org otherwise its showing a blank page with the following ...
2
votes
2answers
231 views

How do you Expand All/Collapse All in lightning:accordion

I'm trying to Expand All/Hide All in lightning:accordion Lightning aura component. <aura:iteration items="{!v.pboW.listPb}" var="pbW"> <lightning:accordionSection name="{...
0
votes
0answers
26 views

Why does a datatable that is nested inside a recordEditForm call onSubmit() on every inline edit?

As per the title, I have a datatable component nested inside my recordEditForm to display and edit some data (and never submitting, thus the suppressBottomBar="true"). The weird thing is that whenever ...
0
votes
1answer
77 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 ...
2
votes
1answer
45 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
40 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
39 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
17 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 ...
1
vote
1answer
25 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
28 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
42 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
53 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 ...
0
votes
1answer
52 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
13 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
34 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
174 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
40 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
73 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
47 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 ...