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
11 views

ui:inputSelect required=“true” not working on a Lightning Component

I am not able to make ui:inputSelect, as required by adding an attribute, required="true" Below is the code, after adding the required="true" also, I was able to save the Lightning component without ...
0
votes
0answers
16 views

I want to change the background color of Salesforce Lightning List View any one can help?

I have created below component using lightning List view- <lightning:listView aura:id="listViewAccounts" objectApiName="Account" listName="qwerty__AllAccounts" rows="10" showSearchBar="true" ...
2
votes
0answers
20 views

Custom labels in lightning component displayed in another language

I see custom labels used in lightning components are displayed in another language (not in my user language). My org's default and my language is Japanese but they are displayed in English. I also ...
0
votes
0answers
13 views

Lightning component to update a field on the record

I am trying to replace the Javascript button to Take Ownership on the Case to a lightning component like below Controller ({ recordLoaded: function(component, event, helper) { var ...
0
votes
0answers
11 views

Treegrid doesn't persist selectedRows

I'm using lightning treeGrid in my lightning Component but once I collapse Grid and re-expand it, selected values are no longer selected. Component: <aura:attribute name="gridData" type="Object" /...
0
votes
0answers
8 views

lightningstylesheets on vf page messing up warning icon

I am using standard visualforce page with lightningStylesheets="true". warning icon is not user friendly. I tried to hide icon using below script which didn't worked. Please let me know if there is ...
0
votes
0answers
10 views

Overriding New button on Opportunity in Lightning page

I have created a button - 'New' on opportunity. User is clicking it from account ->Opportunity Related list to create a new opportunity. My Component and Controller is like this -> -----------------...
0
votes
1answer
18 views

What does this Salesforce JavaScript mean?

In an effort to retrieve the current user in JavaScript on a Salesforce page, I came across this command: $A.get("$SObjectType.CurrentUser") This is great because it works. What's not great is that ...
-1
votes
1answer
20 views

Unable to create Contact Record using Lightning Record Edit form [closed]

I'm unable to create new contact records using lightning record edit form.Below is my code and error i'm getting.I'm passing all the required fields on contact. <aura:component> <...
-1
votes
1answer
20 views

When checkbox is True,Date field is Editable && if checkbox is False, Date field is Hide/Readonly in aura controller

Hi pls find my requirement , When checkbox is True ,then Date field should be Visible if not then Date field should be Readonly /Invisible pls find my analysis below : In Page layout, Date field is ...
0
votes
1answer
37 views

Aura Component now working

Component: <aura:component controller="COVID19" implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
0answers
16 views

Unable to invoke Apex Class in lightning component for non-admin user

I have a quick action which invoke a lighting component.It calls the apex class from there based on user input.The issue is button is working for all the user , but once the user input Yes/No, it ...
0
votes
1answer
16 views

How to control LWC component's read/edit access for different User's?

My requirement is to control LWC component's read/edit access for different users. Some users may be given read only access, while some have to be given Edit access for the same component..!! I ...
0
votes
0answers
19 views

How to get Activity history (meetings/calls/events) to show up under Account History [closed]

I wanted to understand if I could get the Activities History to show up in Account History of a Company profile. The end goal is to capture the number of certain types of meetings from Activity ...
0
votes
0answers
15 views

Why throwing the same product in Cart.has(product) it return false

Controller handleClickAddToCardEvent: function(component, event, helper) { let product = event.getParam("product"); let Cart = component.get("v.productCart"); if(...
0
votes
0answers
20 views

Row specific action in child component

I have two aura components, parent and a child. They are similar to https://sfdcmonkey.com/2017/08/09/add-delete-rows-dynamic/ Parent Component looks something like this: <aura:component > ...
2
votes
0answers
14 views

Not able to upgrade app with In-App Guidance (Prompts)

We recently introduced Prompts in one of the managed package but after that we were not able to upgrade subscriber org. Is anyone else running into this issues? Error: We couldn't install the ...
0
votes
0answers
20 views

Get Case information via JavaScript [closed]

I'm trying to use JavaScript to retrieve some basic Case information (number, priority, status, etc.) from a page. The idea is then to make an AJAX request to another system that holds different data, ...
0
votes
1answer
23 views

lighting component :Helper function not working

My requirement is when picklist value is selected, an inputfield shouldn't be blank. Pls find my code below : controller : saveAction: function(component, event, helper){ helper....
0
votes
2answers
17 views

Salesforce have standard Open hours For Stores?

I do some researh and cant find anything, exist something like this? Thanks!
0
votes
0answers
13 views

Package Creation [closed]

How to create a managed package so, when I install it on another org it should be installed as a lightning app. now when I create it and install it shows classic managed. I need to convert it to ...
0
votes
0answers
13 views

How to get rid of decimals from Record Count in Dashboard

Knowledge Article to get rid of Decimals from Dashboard I have tried workaround mentioned in the knowledge Article , but my record count is never in fractions so that wouldn't get rounded to nearest ...
1
vote
2answers
31 views

Date requirement when checkbox is True in aura component

Hi my requirement is: When select checkbox, then need to display Date as follow: When checkbox selected, Date should be year ending 1231. Pls find my code below in controller: component.set("...
0
votes
0answers
11 views

validation rule not display error message in child component in Lighting

I created Validation rule on a child component, But when I click on 'Save'(Standard Save) from the Parent component, The Validation rule does not display any error message. For this end users ...
3
votes
1answer
62 views
+50

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/...
0
votes
0answers
31 views

Lightning Flow issue?! Not working properly

I have created a Lightning Flow, where I pass recordId to custom LWC component. When I save it, i get following warning - (Although Lightning Runtime is enabled) Then when I add my Flow to a record ...
0
votes
0answers
24 views

List view button in Lightning

I know this is not a new thing but wanted to put some more focus on it to get working solution I need to create a "List View Button" using pure Lighting (No VF Page at all). Till now I have tried ...
0
votes
0answers
21 views

how to create fields dynamically in Lightning Web Component [closed]

I want to create some Input fields dynamically in LWC. When I select a particular value in the picklist field I want to display couple of input fields. How to achieve this in LWC.
0
votes
1answer
15 views

I get empty spaces where the components should been located

code <aura:component controller="ProductController" implements="force:appHostable,flexipage:availableForAllPageTypes" access="global"> <aura:attribute name="soqlRequest" type="String" ...
0
votes
1answer
45 views
+50

Global Search Bar component not available in Build Your Own community template

I have configured a Lightning Community using the Build Your Own template. I wish to add a global search box like the ones in the headers of most of the built in templates, to allow my users to search ...
0
votes
0answers
18 views

Redirect in LWC using in Visual-force [closed]

I have a custom Login Page in LWC using in Visual-force. If the Login credentials is successfully validate we need to show the user information in another page. I have the Login page, But not sure it'...
0
votes
1answer
9 views

Standard Lead Convert Action on custom Lightning Component

Is there a way to call the existing standard action of Lead Convert inside a custom lighting component? I need to show a modal with some validations and if it seems correct by the user, click inside ...
0
votes
1answer
23 views

how get map value and keys which I got (let fieldVAlues =response.getReturnValue();) from the apex method(getPicklistValues)

ComponentController getPicklistValues : function(component) { // let fields = component.get("v.picklistfieldMap"); let fields = new Map([ ['v.typeMizerOptions' ,'...
0
votes
1answer
34 views

inputField required is not working LWC

I have a Custom modal with lightning-input and lightning-input-field on click on save button have to validate the input fields is mandatory. lightning-input-field is pick list values For lightning-...
1
vote
2answers
46 views

How to get return value from helper class to controller class?

I want to have the value of Helper class's function who calls Apex method and return the state to controller from where it is being called? For eg. below is the code : DummyController.js ...
0
votes
0answers
7 views

Joined Reports with 2 unrelated child objects

I'm trying to create a joined report with a custom object (object A) as the base. It is the Master in two Master-Detail relationships (Object B and Object C). Object B and Object C are NOT related. ...
0
votes
0answers
54 views

Issue with creating URL to invoke email functionality in Lightning [duplicate]

I keep getting this error: The value of the p3_lkid parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value ...
1
vote
1answer
30 views

Convert JavaScript List Button to Lightning

I have a js list button which opens up new record (on edit mode) and pre-populate fields. I'm trying to figure out - what is the best way to convert this button to be lightning ready, but also keep ...
1
vote
0answers
21 views

How to add a onmouseover Attribute method in lightning datatable

We are using lightning datatable for inline editing and i want that the data table records should be seen through popover . I am using below code :- i tried to add onmouseover method but its not ...
0
votes
1answer
17 views

why my handler cant detect changing data attribute <aura:attribute name=“soqlRequestString” type=“String” access=“global”/> passed from MainComponent [closed]

ElectronicCigaretteTableComponent.cmp <aura:component controller="ProductController" implements="force:appHostable,flexipage:availableForAllPageTypes" access="global"> <aura:...
0
votes
0answers
26 views

Can we load a lightning Tab without clicking on it

Currently I have hosted LWC component directly on Lightning Flexi page. But since the data which I'm showing in this lightning component is coming from Callout. And for few of the record data is too ...
0
votes
0answers
37 views

Topics enabled for objects not getting deployed to packaging org

While trying to deploy TopicsForObjects in the packaging org I receive the following Error: Error metadata/package.xml package.xml You cannot install or upgrade a package that has a ...
0
votes
1answer
38 views

Affix a Div while scrolling

I have two sections in an LWC and the section 1 contains lot of data hence that section scrolls. The section 2 is a fixed size div which has inner scrolling. Now I need the div on the right side(the ...
0
votes
1answer
28 views

Lightning button icon without border

Is it possible to remove the border on a lightning button icon when it clicked? <lightning:buttonIcon iconName="utility:dislike" variant="bare" onclick="{!c.downVote}" size="medium"" <...
0
votes
0answers
15 views

“object Object” error message for ST Field Set Form

When using the ST Field Set form, I'm getting an error when referencing 10 project fields on the field set 'Client_Field_set' . I'm logged in as a system admin, so have edit access to all the fields ...
0
votes
1answer
18 views

How to clear and start timer in lightning component with button click?

I have a scenario where i need to clear the time interval with a button click and start the time interval with another click. Right now when the page loads(refreshNotifications), the time interval ...
0
votes
1answer
16 views

Overlay image on an other

Is it possible to overlay image on an other ? I want to do that to display notification on a Logo. I have one regular Logo and an other with red dot. With this code it is working but sometimes it ...
0
votes
0answers
16 views

How to increase the length of quick action popup

I have a lwc component, which is used in Quick Action, the standard quick action popup length is small, I want to increase its length. To increase the width I have used below code, but when I put the ...
0
votes
1answer
29 views

Target Config to expose a LWC in both Desktop & Mobile

I have created a Lightning Component & i want to expose the same in both Desktop & mobile. I used the following in the meta.xml file,the component is either visible in desktop or mobile.. but ...
0
votes
0answers
14 views

override save button in lightning web component after create record

Is there a possibility to create this field as standard in Lightning web component? I did it in custo the problem when I create a contact and I click on save it redirects me to the contact created ...

1
2 3 4 5
110