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
2answers
483 views

How to get recordId for pageReference with Lightning

I am trying to navigate to an object's record page once it is created after a button click but the recordId is currently showing as undefined when I print it to the console. Any idea how to retrieve ...
0
votes
2answers
713 views

How can I set default sorted direction in lightning datatable?

I have a datatable which has column of type date. I want to set the default sorting order of the column. That means it should not allow the user to sort but date should be in order of latest date ...
1
vote
1answer
1k views

Unable to deploy source to dev-hub enabled org

as part of doing Push and Deploy Lightning Web Component trail (https://trailhead.salesforce.com/content/learn/modules/lightning-web-components-basics/push-lightning-web-component-files), I have been ...
1
vote
2answers
3k views

problem with lightning:input

i have a problem with the tag <lightning:input type="number">. I want to insert max 3 integer and 3 decimal (999,999 or 1,0), i try to use this: <lightning:input type="number" step="any" ...
0
votes
2answers
46 views

How to hide controlling field and how to pass values of controlling,dependent picklist fields to save record using Lightning record edit form - lwc

I have created a form using lightning record edit form which basically has few case object standard fields and a controlling and a dependent field. I was able to default the controlling field value in ...
1
vote
0answers
347 views

How to get list of selected OpportunityLineItem ids List Button VF - Salesforce Ligtning

We are migrating our development from Salesforce Classic to Salesforce Lightning. In Salesforce Classic having a development 'Mass Update' opportunity line item from Opportuntiy. Having custom list ...
0
votes
1answer
929 views

How to capture signature in Salesforce1 (Mobile App)

I want to capture digital signature using mobile devices in Salesforce1 (Mobile App). I want to store my signature in the system so that I have an option to store my signature electronically in ...
3
votes
2answers
254 views

How To Create Custom Page Template?

In the Lightning App UI, can I create a custom page template? I see you can "Change" and select from a list: But how do I create a custom one to add to the list?
1
vote
1answer
1k views

<force:recordData> not getting called

I'm facing trouble with <force:recordData>. I have a list of custom objects displayed in the form of table over <Aura:iteration> Out of that list, when a button is clicked, a certain ...
0
votes
0answers
8 views

Assign/Remove Buyer Group using apex in B2B Lightning Commerce?

Could you please someone explain the relationship between Buyer Group and account ? I am trying to assign/remove a Buyer group to an account, but not able to assign using Apex. Thanks in Advance.
0
votes
2answers
2k views

Append files to the first upload in <lightning:input type="file">

I am using the following code in my lightning component to upload multiple files <lightning:input aura:id="fileId" onchange="{!c.handleUploadFinished}" type="file" name="file" label="Upload ...
0
votes
2answers
2k views

How to get and display inform from Apex with Javascript Controller?

I built an application with Lightning Experience. In my custom apex controller, I have a method named getParam. public class compController { @AuraEnabled public static List<ObjectParent> ...
0
votes
1answer
17 views

How to set lightning input value using index in aura iteration when button is pressed

I want to set the incremented value to lightning input when a button is pressed. In aura iteration n number of record when I click on a button it is copying the value to all lightning input. But in my ...
6
votes
1answer
775 views

Binding behaviour on lightning components with ui:inputText/Checkbox components

I'm currently building a lightning component for a community builder portal. The whole series of components is reasonably complex but nothing extreme (it's a wizard). To make things easier I'm using ...
0
votes
1answer
515 views

How to always call aura:handler init regardless of how many times a certain component is called

I have a code that calls specific components upon clicking links. These components have init functions that checks certain field values. I'd like to know how many times an init function is called ...
0
votes
1answer
2k views

Salesforce LWC aura_prod.js:3 Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined

I am getting below error when i try to pass data to apex. I did everything to debug but unable to find root cause. aura_prod.js:3 Uncaught (in promise) TypeError: Cannot read property 'Symbol(...
0
votes
0answers
12 views

Pass record details from component to JavaScript controller [duplicate]

I'm facing an issue with passing record details or array of records from component to javascript controller. Component: <aura:attribute name="currentUser" type="User"/> &...
2
votes
1answer
610 views

How to set org wide default home page through metadata api? Not for specific app or profiles

This question has been asked by few previously and i see the answers are not pointing to the correct scenario I am having a need to deploy a new lightning home page and set it as default for the ...
0
votes
0answers
14 views

Salesforce reporting console errors as Component Errors

I'm relatively new to salesforce Platform. I've created a managed package and installed it on 5 various orgs via the package URL. There were 2 unhandled bugs unaccounted for that have been left in the ...
0
votes
1answer
30 views

landscape view in mobile

I have created a form where we have around 21 fields to be filled. when I viewed this form in mobile toggle, for portrait view its working fine, but for landscape view, The alignment getting disturb ,...
4
votes
3answers
3k views

How to handle error of lightning:recordForm

Right now, I am aware of the onerror event of the recordForm tag. However, in the controller, event.getParam("errors") doesn't return anything. This is how the controller code looks like: ...
0
votes
1answer
489 views

Datatable Column action check mark not updating when using Header-Level Actions and @track columns

I followed documentation for "Creating Header-Level Actions" (https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation) The actions fire ok but I am having ...
0
votes
1answer
578 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
16 views

JEST Coverage for LWC

I have made an LWC component and all functionality seems to be working, however, I am struggling to get test coverage for some functions. I have built some tests for them but according to the code ...
0
votes
1answer
478 views

Custom quick action button - can I add onclick / init handler to it?

So, I've got a custom made Quick Action Button that renders some elements whenever the button is clicked. Whenever a user clicks this button, I'll need to fetch some ids related to the record - ...
5
votes
2answers
719 views

How to deal with an optional field in Lightning URL hack?

I am using the new (Spring '20) Lightning URL hack functionality. This is the URL that I have constructed so far, it is invoked by a detail page button on the Opportunity object: /lightning/o/Quote/...
3
votes
1answer
967 views

Why does lightning experience use a different url for svg icons?

It's great that stylesheets are included by default in lightning experiencem but where do we access the icon svg resources. Lightning experience loads the svg in what looks like a different way than ...
1
vote
1answer
1k views

Screenshot using html2canvas in salesforce lightning

I have created salesforce lightning application to take screenshot using javascript(html2canvas.js), but it will give me only background color not text. Apllication: <aura:application > <!--...
0
votes
0answers
33 views

Please help!! How to get a field to throw error using name attribute not id attribute from lightning input

I am new to sfdc, Please ignore if any mistake. I want to get the field so that I can add an error to it using setCustomValidity function. ‹lightning: input onchange="(c.handlePowerUpdate)"...
-1
votes
0answers
20 views

How to reorder rows in Lightning data table based on rowaction?

I am working on a requirement to reorder the rows in the data table based on the up/down actions. but the reordering is not happening as expected, for up action its working only one time from the ...
1
vote
2answers
2k views

Embed Analytics Dashboard with Filter Logged In User

I want to embed a Lightning Analytics Dashboard and apply a filter to display a filtered set of records from my dataset in a dashboard. In this situation Case records, where filtered where Case's ...
1
vote
3answers
27 views

CurrentPageReference @wire method is executes after another @wire method

I have @wire method in LWC component which uses the current page 'actionName' and 'recordId', which I want to get it from CurrentPageReference and use in another wire method, but CurrentPageReference ...
1
vote
1answer
66 views

Can an Account object have a lookup to another Account?

I need a way for the Account object to track Partners (which should also be an Account record). In a traditional relational database I'd model this by making a many-to-many relationship with a "...
-3
votes
0answers
50 views

How can I send selected records to apex controller?

Hey everyone help needed, I have created a component where I am using lightning:datatable, this functionality includes pagination, checkboxes and search filter. I am using client-side pagination and ...
2
votes
0answers
138 views

OpenCTI searchAndScreenPop method

How can I use the searchAndScreenPop method (Lightning) to search by a custom field? For example : I'm trying to use this method to popup a Lead which has the phone number as a param, but I don't ...
0
votes
4answers
1k views

Error when trying to Send Salesforce Survey: We couldn't find the record you're trying to access

I am trying to send a Salesforce Survey, but when I get to step 2 of the Send Email wizard, I get this error: We couldn't find the record you're trying to access. It may have been deleted by ...
0
votes
0answers
34 views

group by multi select picklist in report

Premise: We have a structure of as a custom Object, say employee, which is a child of Account. This Employee object has a multi select picklist which contains Year (2000-2050), lets say tenure. ...
0
votes
1answer
487 views

Unable to Change/Add CSS in lightning:tab

Trying to add css class in lightning:tab, but always getting the aura:id value as undefind, I am trying to load my third tab as red in color onload of the component. here is the component <...
0
votes
1answer
28 views

How to populate a Picklist field and also save uploaded files using Lightning Components

I'm trying to create a lightning component for KYC Verification. And for that, we are trying to access a picklist field- 'Verification Id'. The data is not getting saved. Also, the files are not ...
0
votes
2answers
40 views

How to display child(Grand Child or any level of child) component to look as its top most parent's sibling in the same grid

I do want to have UI something like the image attached bellow: But finding the code is not creating such. Instead getting UI as shown in bellow attached image: What I'm doing wrong. Find the code(...
0
votes
1answer
761 views

Trouble getting multi-select filter checkbox to work on LWC datatable

I am currently trying to implement a filter menu dropdown with multi-select checkboxes. When a user checks two "groups" or more, the lightning datatable will display/filter only records from the ...
1
vote
1answer
1k views

How to get the value of a standard html input checkbox in a Lightning Component controller?

In order to obtain the standard styling of the Lightning Design System, I've used in one of my components the following HTML to render a simple checkbox, that can be found in the standard docs too: &...
0
votes
1answer
663 views

Hide Case Owner Field in Recently View Cases List view

I have got a requirement to hide case owner field from 'recently viewed cases listview'. Is it possible to achieve this requirement?
4
votes
3answers
10k views

Get selected records from Lightning list view custom button: URL addressable

I am trying to select records from list view custom button. I want to pass the selected record ids in the paramaters. I tried the below and its not working for me. /lightning/cmp/c__TestURLfor?...
0
votes
0answers
11 views

ContentDocumentLink Trigger for Sharing with Admin

I ran into an issue where users have been using the standard notes object in Salesforce and when it came to pull a report I was not able to find any notes. After looking into it further, I discovered ...
0
votes
1answer
541 views

OpenCTI: Throw a Lightning event from Visualforce up to Lightning Experience?

We're working with an OpenCTI adapter that the vendor has open-sourced for us. So we have the ability to customize the dialer page which is by design written in Visualforce. The dialer appears in the ...
0
votes
1answer
37 views

lightning-record-edit-form not rendering anything when running via another profile

I have created a flow. Where I have a profile check that of profile is "Retention" then show an LWC screen. <template> <lightning-record-edit-form object-api-name="...
0
votes
1answer
614 views

Setting limit into Datepicker

I am presently using the following command to select date by the datepicker:- <ui:inputDate aura:id="startdate" format="MM/DD/YYYY" class="field" value="{!v.StartDate}" displayDatePicker="true" /&...
2
votes
1answer
1k views

Not able to access lightning record page layouts in Salesforce 1 app

We are working on to roll out Salesforce 1 mobile app for our users.In this process, we are stuck with one issue which is stopping users from accessing the record pages in the same way we access them ...
0
votes
0answers
8 views

lightning:icon - set svg attribute preserveaspectratio to none

I was developing a lightning component where I wanted to use a lightning-icon. I want it to look exactly alike the ones that are displayed in lightning:select, however the icons to not necessarily ...

1
2 3 4 5
127