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
-3
votes
1answer
40 views

Aura component error: setcallback is not a function [duplicate]

Apex class public class Controller_Apex{ @AuraEnabled Public static string callApexmtd(){ return 'Amit kumar'; } } component <aura:component controller="Controller_Apex"> ...
1
vote
1answer
21 views

How to make input form Readonly based on User profile in Lightning Component?

I have an Action button in our lightning Page, upon clicking it shows a form to input couple of fields and save it. But I have to make those input fields readonly for Profile 1 and editable for ...
0
votes
0answers
10 views

Can't redirect to custom report from community

I have a lightning component that redirects to custom reports including filters if needed and it's included inside one of our salesforce communities. The issue is that the generated URL works fine ...
0
votes
1answer
38 views

How to pass Objects from Lightning component to apex

I have been trying to pass the JS object from component to apex. it says Issues are I am not getting Listsubsystem variable in apex. var listOfsubsystemObj = []; var jsondata = ...
0
votes
0answers
9 views

Chatter FeedItem LinkUrl open in current tab

I have a Chatter Feed displayed in a Customer Portal, and I have Chatter Posts with a LinkUrl value. Is it possible to change the way the anchor tags are rendered so they do not open a new browser ...
0
votes
1answer
28 views

LDS data coming null for a specific profile for a lightning component, the profile has view/modify all permission

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" > <aura:attribute name="record" type="Object"/> <aura:attribute name="...
0
votes
0answers
14 views

Salesforce Multi select Search box issue in ligtning component

We have a custom lightning component where a user would choose one of 5 objects. Then there is a search box where the user searches for the records and can add multiple records. while displaying ...
0
votes
0answers
10 views

Auto redirect visualforce page from lightning actions in lightning Community

I would like to redirect a visualforce page to action attribute URL from lightning action. I have created a sample VF page like below <apex:page standardController="Quote__c" action="https://www....
0
votes
1answer
36 views

Position fixed problem lightning

I have a custom lightning component on a record detail page. The component has a message which i want the user to be alerted. Everything works great but now i want the banner to scroll also if a user ...
1
vote
1answer
39 views

Lightning Web Components - Radio button “checked” not retaining when navigating back and forth

I am not UI/UX person and I need help with setting radio button as checked when used in a LWC inner template-for-loop which involves page navigation and conditional rendering. I am able to get the ...
0
votes
0answers
16 views

Embed a custom component in lightning email template

There are several VF email templates in my org which internally references VF components. These components have custom functionality of querying different objects and preparing a custom result which ...
0
votes
0answers
14 views

Timestamp/Datetime of the response with a REST API Call request [closed]

When i get a response for my API call, how can I get a timestamp/datetime with the response. ? i saw this method getServerTimestamp() in documentation but this for SOAP API, Anything equivalent for ...
1
vote
1answer
20 views

Deselect checkbox on click of a button

I have the following code in my lightning component <lightning:input type="checkbox" label="Life" aura:id="checkboxField" value="{!v.isLifeChecked}" ...
0
votes
1answer
20 views

Lightning <option value=“”> not displaying

In the lightning documentation it states that I should be able to set a default value with the <option value=""> inside of a lightning:select. When I attempt to do this, my option value gets ...
0
votes
1answer
20 views

Need to pin a lightning component so it is always visible on the page

Let's say i have a custom lightning component which have some kind of message embedded. When i add my custom lightning component to a record page and the user is viewing the record page where the ...
0
votes
1answer
10 views

Not rendering data in lightning component

I dont understand what is the problem here. I have to show list of about 48 countries like below but nothing is coming in UI. I have tried every possible combination but no use! <aura:component ...
1
vote
2answers
35 views

What is the use of errorCallback lifecycle hook in LWC?

I found the documentation of errorCallback here - https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_lifecycle_hooks. But whatever I am trying to implement does ...
0
votes
1answer
28 views

How to display Several URL"s in toast message

I have a requirment where i need to show some alert messages to the user. The alert message should be non blocking and if the user scrolls the page down, the alert should also move so that the user ...
0
votes
0answers
11 views

Can we transfer call using salesforce open CTI?

Can we transfer a call if we use the softphone implemented from open CTI in salesforce? I installed the lightning open CTI plugin from there https://developer.salesforce.com/page/Lightning_Open_CTI, ...
0
votes
1answer
37 views

How to convert this javascript code to lightning

{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")} var r = confirm("Are you sure?"); if(r == true) { sforce.apex.execute("psaPTO_Accrual","...
2
votes
1answer
30 views

Convert Opportunity javascript button to Lightning Component

I have an onclick javascript button and converted this button to an lightning component(full) using the Lightning Experience Configuration Converter tool. But,when I'm testing the converted button,...
-2
votes
0answers
27 views

Styling a Data Export > Excel from a Lightning Component

var csv=helper.convertNopTemplateToCSV(component,event,helper); var hiddenElement = document.createElement('a'); hiddenElement.href = 'data:text/csv;charset=utf-8,' + encodeURI(csv); ...
1
vote
1answer
36 views

LWC @api boolean attribute issue

I am trying to pass value to a public boolean property in a web component from a parent lwc. Child JS definition: export default class GsdDseUserProfilePicture extends LightningElement { @api ...
0
votes
1answer
27 views

Add custom validation when table is loaded in LWC

I have a table with few columns. I have to add validation based on first two columns. First column is "Model Number" and second is "Part Number". I am using html table with "for:each". And data is ...
-1
votes
1answer
25 views

How to replace href attribute of an anchor tag with URLFOR() function in visualforce pages?

As Salesforce.com suggested in this article In my custom visualforce page I'd like to replace the href attribute of an anchor tag: <li><a href="http://www.google.com">Google</a><...
1
vote
2answers
27 views

How the button method gets the value passed by [postmessage]

I have been thinking for too long, but there is no substantial progress on this issue, so please ask everyone, what are the good suggestions and solutions. This is my LWC.JS file import { ...
0
votes
0answers
16 views

Salesforce Lightning for Outlook Extension

Since the "Salesforce Lightning for Outlook Extension" is a cloud-based product (outlook add-in). This extension should update automatically, my question is will it inform the user that the extension ...
0
votes
1answer
25 views

Highlight a child account if headquarters not working in LWC

Below is the code for child LWC component which shows child account in iteration. This has to be highlighted by changing account name color and background. I am using below code: import { ...
0
votes
3answers
48 views

Override Default Tab Key press event in Lightning component?

I am trying to override the default tab key press event. For other key this custom method is getting called but for some keys like Tab,enter.. it's not working. Below is the code what i tried. xxx....
0
votes
1answer
22 views

can we have select2 behavior in lightning components

Is it possible to provide search mechanism in picklists with lightning component as shown in image? Please let me know if anyone has idea.
0
votes
0answers
21 views

Visualforce page widget for classic appears in clone modal in lightning mode

If I add visualforce page to Salesforce Page layout (for example Opportunity layout), I see it in Clone modal in Lightning mode. Is there a way to not expose layout items in Lightning Clone modal ?
0
votes
1answer
59 views

LWC HTML not rerendering after object change

I am facing a similar issue, where I need to modify the object. its not rerendering the HTML. Any thoughts on this ? I want to rerender UI after this object is modified. I went throught the documents ...
0
votes
0answers
25 views

Salesforce Object which holds “HTML & CSS” records?

I am quite new to Lightning Development and appreciate any help. I have a custom object called "template" and the requirement is the following: There are n template records let's say "standard" and "...
0
votes
1answer
30 views

the record is deleted from the database, but the table with new data is not displayed [closed]

code apex @AuraEnabled public static void deleteContact(String contactId) { Contact tobeDeleted = null; for (Contact a : [SELECT Id FROM Contact]) if (a.Id == contactId) { ...
0
votes
0answers
35 views

Salesforce mobile home button

Is there any way to create a custom home button on Salesforce mobile app? I tried using global action with lightning component that goes to the start page, but the three bars for navigation menu ...
0
votes
0answers
14 views

Canvas app not working - 404 error

I have a rails application and I created a custom app with 'canvas' enabled and gave the url of my app (https://www.samplesite.com/canvas) and embedded the canvas app inside visualforce page with the ...
1
vote
1answer
45 views

Deleting 'Files' in Lightning Experience

As per Salesforce documentation 'Files' (ContentDocument) can be deleted only by the user who created them. In order to provide access to delete a file created by other users, Salesforce recommends ...
0
votes
1answer
20 views

How to Change Fields

How do I change Fields in these boxes. See image. Thank you !!
1
vote
1answer
51 views

Apex method not getting invoked in LWC

LWC JS: import { LightningElement, api, wire, track } from 'lwc'; import getAccDetails from '@salesforce/apex/UI_Controller.getAccountName'; export default class AccordionComp extends ...
0
votes
0answers
8 views

I could not find ¨Pending¨ option for Approval history status in Report

I am trying to generate a report on Approval history, i could see the values Approved and Rejected in the report for status column. BUt it is not considering Pending option in the status. Can anyone ...
0
votes
1answer
35 views

Showing Contacts of Accounts using lightning flow and lightning component

I am building a lightning flow to display a list of contacts related an account using lightning flow. My issue is that I am using lightning select aura component to show the contact related to the ...
0
votes
1answer
69 views

lightning datatable (AURA or LWC) can automatically fetch records from database?

Is it possible to fetch records automatically from database just by mentioning columns? Also can we use relationship fields to get data without any processing? For example CreatedBy.Name ? Other ...
0
votes
0answers
14 views

Mobile VF tab not working [iphone]

I have a VF Tab which is redirecting to a URL. This is loading fine in classic and lightning desktop but not working in mobile. Iam getting below error Can any one of you please help me to resolve ...
1
vote
0answers
18 views

How to make the values of lightning:recordEditForm stay on button click

I'm using lightning:recordEditForm to display the case fields in a component. On clicking next which is present in step 1, it will display another set of values of the same record in step 2. On ...
0
votes
0answers
19 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 ...
3
votes
2answers
75 views

Create and use Object Variable

How do I create an "Object" variable with two fields inside and assign value to these fields through this "for": for(RecordTypeInfo info: Indicador_Clinico__c.SObjectType.getDescribe()....
0
votes
1answer
19 views

How to achieve custom error handling on lightning:inputField base components?

With the record:EditForm lightning base component, one can now easily ensure that picklist values are displayed dynamically based on the record type that is chosen. Instead of having to leverage the ...
0
votes
1answer
18 views

Lightning:dualListbox Style Not Working As Expected

When I create a dualListbox on a lightning component I am unable to see the values. When I inspect I can see that the values are there. It almost looks like the color is set to white or transparent. ...
-1
votes
0answers
21 views

Lightning Component is not Working in Mobile, (Document.getElementById(“any-Id”).value)

I have a Ligntning Component and I am using native html input tag. I am using Document.getElementById("any-Id").value or via $("#any-Id").val() to get a field value on record update. The component ...
0
votes
2answers
21 views

How to display second form by clicking first lightning component form?

Here I'm displaying two forms in single page 1.customer login form and 2.customer details form. By using phonenumber I can able to get data from salesforce by clicking a button and diplaing in ...