Stack Exchange Network

Stack Exchange network consists of 175 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

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

Set lightning input in a child component based on parent component onChange event

I am implementing simple Contact create/edit form and I have problems with automatic setting of one field (consbp) based on an entry in different field (AccountID). The main component (contactCreate....
0
votes
2answers
35 views

Remove rows from Datatable in lightning controller?

Is it possible to remove rows from custom datatable within JS controller that is without making server call. <th scope="row" class="slds-text-align_left" style="width:3.25rem;"> ...
0
votes
2answers
61 views

how to remove header of lightning component [closed]

Does anyone know how to delete the header of lightning datatable, and how to put data parts only? I would like to make table like the attached image. Red cross parts is supposed to be removed.
0
votes
0answers
13 views

SSL issue when opening a lightning component

When a user logs in the application and opens a flexi page with lightning components the following error message is shown. This issue is seen intermittently. SL Error (ssl_failed) A secure SSL ...
0
votes
2answers
58 views

Lightning Component hiding button depending on a value of a field

I am trying to create a Lightning Component to that has a functionality to update a field value Submit_Go_No_Go_Question__c, and hide the button whenever a field Go_No_Go_Question__c is not blank. ...
0
votes
0answers
28 views

Force edit record without modal dialog

I want to confirm from the gurus if it’s possible to display the object record in edit mode as an inline edit without the modal dialog popping? I have a standard lightning page on a standard object ...
1
vote
0answers
28 views

Orderitems Javascript Button replacement for Lightning

Currently I have the following as a javascript list button that allows the user to selected records: {!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')} var selectedRecords = {!GETRECORDIDS( $...
2
votes
1answer
34 views

event.detail is undefined in Lightning:recordEditForm submit event

I'm trying to get field values at Lightning:recordEditForm onSubmit() event.In the documentation example it shows below. my onSubmit event handler as below, I end up getting error, [event.detail ...
5
votes
0answers
26 views

Does lightning beta tags pass security review? [duplicate]

There is lightning:tabset and lightning:tab tags which are still in beta as of now. If we use them while developing an app exchange product do they pass security review? Can we use them in production?
0
votes
2answers
53 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
0answers
11 views

Communities - How to Create a Template Header on Build Your Own Template

New to communities, and I'm struggling to understand the documentation regarding theme layouts. On the "Build Your Own" theme, you are provided only a Content Header, Content Body, and Content ...
1
vote
1answer
34 views

Create sObjects related by What field

I am using the SOAP API (in C#) to create new Cases, which will have several Tasks attached. The intent is to be able to view these Tasks under the "Activities > Next Steps" area of the Case view on ...
0
votes
1answer
36 views

conditional rendering is not happening to display child component

I am trying to render conditionally to display child component. But it is not happening. on button click i am getting the values, but child component is not getting displayed. <template> ...
0
votes
1answer
90 views

Lightning component auto refresh to view the case record

In Detail-record page, where you can see (activityTracking page and related list) and on header of the page there is new case button to create a new case record. I have an activityTracking page(...
2
votes
1answer
42 views

How to refer child component name in parent component LWC

I have a child component folder "bCPContractTOP" which has bCPContractTOP.HTML bCPContractTOP.js bCPContractTOP.js-meta.xml How to call this from parent component. I am getting one error LWC1010: ...
0
votes
1answer
57 views

Pass values from parent to child LWC

I am trying to pass value from parent LWC component to child LWC component, but i am getting "undefined" error. Am i doing anything wrong. Parent : <template> <div> <lightning-...
0
votes
1answer
24 views

Open Lightning component in new tab or window with standard Action button using URL

Trying to create an Action button to be placed on the record detail page, I want the functionality as click on that button, lightning component URL should open in a new window. Using this link: /...
0
votes
1answer
16 views

Fetching latitude longitude datat from image on IOS in SF1 App

I need to to fetch the Latitude and Longitude of Image captured or uploaded using SF 1 App.I am using EXIF to fetch the same in javascript(helper) While it is working on android , same does not work ...
0
votes
1answer
28 views

Click a custom button in lightning to redirect to a VF page in edit mode so that the case record type field can be edited

I have a custom button 'Convert to Quality case'. On click, it redirects to a VF page. I want to open the VF page in edit mode so that I can edit the 'Case record type' but I can't edit the Case ...
0
votes
1answer
26 views

How to render a section based on Lightning:inputfield change?

I have a visualforce page in which I am calling the lightning component. Based on a field change, I want render the bottom section of the component. here, the status field is a picklist and I want to ...
0
votes
1answer
38 views

Custom Style For Lightning Toast

Is there a way to customize the style (color, font-size, height) of lighting toast? I'm trying with css but have no success.
1
vote
1answer
34 views

Building Custom Related List Component

I created a reusable lightning component that will act as a related list component. I want to handle add/remove event when the user makes changes from Edit Page (Settings-> Edit Page). Example: I ...
0
votes
0answers
16 views

Restrict the input type = file to capture images through camera only in lightning components/sf1 app

I have requirement where I have to restrict the image upload from SF1 App to camera only.I have tried using below: <input id = "image" type="file" accept="image/* capture=camera" capture="camera" ...
0
votes
0answers
38 views

LWC fetching wrapper class

I am fetching wrapper class when i see the apex debug it is showing data is returning but data is not showing in lwc. public with sharing class payslipsCntrl { @AuraEnabled (cacheable = true) ...
0
votes
0answers
10 views

How can I change the order of Activities by Due Date in Lightning?

In Salesforce on a lightning page, you can view Tasks for that Object in the Activities pane on the right, you see all the Due Dates. However, they appear in order from oldest to newest for some ...
3
votes
1answer
53 views

Simple Apex controller function never executing

I have a standard Aura Lightning Component with onChange handler, Javascript controller and Apex controller but even though everything seems to be fine, the server controller method is never called. ...
0
votes
0answers
36 views

Does Salesforce have a support system?

Does Salesforce have any support platforms that can offer assistance w.r.t. questions such as: 403:denied_by_security_policy:create_denied when subscribing to platform events that have a heightened ...
0
votes
0answers
31 views

SLDS grid ugly rendering with lightning:outputField

I am trying to display a record using lightning:recordviewform and using slds grid inside it to format columns. It looks like below when I am using slds-size_3_of_12 As you can see, there is still ...
0
votes
1answer
26 views

replace function in JS controller Lightning

I want to replace the call back response with the component value. var actionAcc = component.get("c.getPickupLineItems"); // alert("pickup response: " +actionAcc); actionAcc.setParams({ ...
0
votes
1answer
19 views

Show a report on a Home Page component using VF

I am trying to show an Opportunity report on a Home Page component in Lightning using VF. It's working in Classic, but in Lightning, it says "XXXXXXXXXX.my.salesforce.com refused to connect" Code: &...
0
votes
0answers
12 views

Is it Possible to create Record with separate table (includes picklist)?

For Example i have an object named TEMS__C which can have records like Request1,request2 . Request 1 record should hold some values like order number, status etc.. also below table value. Note : ...
0
votes
0answers
19 views

How to set custom error messages in lightning:recordEditForm [duplicate]

I am using lightning:recordEditForm to populate specific fields in lightning component. I am also able to validate user entries by fetching field values using aura id. Is it possible to set custom ...
0
votes
0answers
20 views

Custom lightning component does not filter records by parent record ID

I created a custom lightning component to display on contact page. It does not filter to match the contact record id, instead it show all records. I checked the spelling of all parameters etc. my ...
1
vote
1answer
21 views

How to create a related list for Orders associated with a Contact record that appears on the Contact page?

I notice that there isn't an Orders related list that can be displayed on the Contact layout/page via the Customer Authorized By Lookup field on the Orders object. Is there a way to create a custom ...
1
vote
1answer
27 views

Checkmarx Reflected XSS with getParameter

I have a visualforce page, which can have a parameter caseId. For example : https://myInstance/apex/myApp?caseId=500c000000DFyxW The VF page creates a lightning component, but needs to pass case Id ...
0
votes
2answers
25 views

slds-gutters not adding spacing between div's

The slds-gutters class does not seem to add spacing between the div's. What is the reason for this? Essentially I could add padding, but I would like to understand why there is no spacing between the ...
0
votes
1answer
32 views

Refresh custom lightning component from standard related list in lightning

In my Opportunity flexi page, i have related list of a custom Object X and also a custom component for the same object (X) on the right hand panel, all in a same flexi page. When i make changes/add a ...
0
votes
2answers
29 views

Picklist values not populating for dynamic rows in lightning component

I have a lightning component that I am trying to add dynamic rows and delete them and save the records on Submit. I asked this question, and I am able to retrieve picklist values without additional ...
3
votes
1answer
34 views

setPassword() method is not working in Lightning Component

@AuraEnabled public static String setPassword( String userId, String password) { User usr =[SELECT id, Name FROM User WHERE Username =: userId]; System.setPassword(usr.Id, password); } ...
1
vote
1answer
23 views

Custom Notification now showing in production

I recently played around with the process builder in a sandbox, and managed to create a scheduled event that would send a custom notification to a user. I finally have a purpose for this feature, but ...
0
votes
0answers
28 views

Getting error message when opening deleted post on community

When I am opening a deleted post using system admin User in community I am getting error. Error Message : The requested resource does not found. Same post when I am opening using Community User ...
0
votes
1answer
23 views

RecordType selection list not available in $A.get(“e.force:createRecord”)

I'm trying to create a Contract from an Opportunity record via $A.get("e.force:createRecord") but it's not displaying RecordType selection list. User has access to two different RecordTypes so it ...
0
votes
1answer
28 views

lightning:buttonMenu don't show on bottom

I've a lightning:buttonMenu in my footer: Component: <lightning:buttonMenu aura:id="menu" alternativeText="Show menu" onselect="{! c.handleSelect }"> <lightning:menuItem aura:id="...
1
vote
1answer
32 views

Css not working in Lightning Web Component

I have this below HTML page in LWC - <lightning-layout multiple-rows="true"> <lightning-layout-item padding="horizontal-small" size="4"> <div class="...
0
votes
0answers
19 views

Close lightning:flow called from a lightning custom component

I have a lightning:flow component embeded inside a custom lightning component. I added a lightning:button for closing the parent componente, and also, lightning:flow. My problem is that if I've ...
0
votes
1answer
50 views

Change CSS of a placeholder in LWC

What CSS selector do I need to use for changing CSS (font-size, color, etc) of a input text box placeholder. following is the input LWC that I'm using :- <lightning-input type="text" name="...
0
votes
1answer
31 views

How force:recordData identifies the sObject type?

In lightning:recordForm we give objectAPIName but in force:recordForm we do not specify any such attribute So, How does force:recordData identify the sObjectType? Assuming there is no value for ...
0
votes
0answers
18 views

Add report in lightning component

I am trying to add a report as iframe in lightning component, had turned off CSP, but when loading the lightning component, page gets redirected to the report page instead of showing report in the ...
1
vote
0answers
19 views

lightning:datatable - is it possible to add multiple urls on a single cell? [closed]

Using Lightning:datatable, is it possible to set different examples of a record(for example 5 accounts), and make those 5 accounts redirectable to the record page layout? Let's say I have a column ...
1
vote
0answers
24 views

Is there a way to load standard tab content through custom component [duplicate]

Is there a way to load standard tab content like "leads" or "contacts" through custom lightning component? Something similar to the way i can load one custom component in another: <aura:component ...