Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey 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.

1
vote
0answers
22 views

Component Refresh Not Happening

I have a component that is opened with an action. On the account, I have a button that opens the component. When I do this, I can see the DoInit firing. However, if I navigate back to that account ...
0
votes
2answers
31 views

Get Lightning Component Nested Inside Another Nested Component [duplicate]

I have a scenario where my Lightning component needs to reference a value inside the child component of a nested component. The nesting looks like this: - Lightning Component - Nested Component 1 ...
0
votes
1answer
25 views

Is there a way to associate data category groups with the articles in lightning?

I'm trying to build a Knowledge base in lightning, and i saw lots of information about data category groups, but i cant associate these ones with the articles, i tried this in classic and is pretty ...
0
votes
0answers
27 views

Is it possible to set a value (in table) dynamically through lightning javascript event?

I have list of object records displayed in a table on lightning component. I would like to dynamically set a field value when another field value is changed. I should be showing the set value to the ...
0
votes
1answer
43 views

lightning:inputRichText & lightning:formattedRichText isn't working with email Template Body

I am having text EmailTemplates in my org where body contains new lines but when I copy the EmailTemplate body to lightning:inputRichText, lightning:formattedRichText either it is displaying it in one ...
2
votes
1answer
32 views

how to use system events with namespace

Does anyone have an idea how to use lightning system events like showToast or navigateToSObject with namespace of managed package (let us say the namespace is xyz). var toastEvent = $A.get("e.force:...
0
votes
2answers
37 views

Refresh when navigating back to component

I open a second component to add some records and when I save, I navigate back to the original component. The problem is that the newly created records do not display on the original component. The ...
1
vote
0answers
33 views

create account from a button inside aura iteration and set account id to the adjacent lookup column

I am new to lightning. I am inserting list of contacts in aura iteration with account lookup. I made custom component for searching account, which works fine. But i also need to give option to create ...
3
votes
1answer
127 views

How do I produce a “New” record button to look like a standard “New” button?

Basically I want to create an input area for a new record. I'm trying to get it styled like the standard "New" Button. I have tried doing it via Visualforce but it looks like a completely separate ...
0
votes
1answer
43 views

Lightning combobox options attribute not showing any options!

I am trying to populate the options attribute of the lightning combobox to the values of a component attribute. The channels component attribute has all the values in it, but for some reason it doesn'...
1
vote
0answers
22 views

Send Chatter Notification every 30 days until field is completed

I am trying to use Process Builder to send a chatter notification every 30 days until field is completed. The record being created starts the process and there is a required date field that is filled ...
2
votes
1answer
41 views

SLDS Class to Filling Available Height

I'm working in the Lightning Design System and building components that need to have a flexible height. In other words, they should stretch to maximum height available on the page. Here's an example, ...
1
vote
1answer
137 views

How to use Aura:Iteration index variable inside a placeholder?

I have a component which has a list of teams over which the aura:iteration is looping. I want to use the placeholder attribute of lightning:input as such: <aura:iteration items="{!v.dToPart.teams}"...
3
votes
1answer
96 views

Pass an enum value from lightning controller to Apex

Is it possible to pass an enum value from lightning controller to Apex? Here is what I tried lightning component part const action = component.get("methodC"); action.setParams({p: "VIEW"}); ...
0
votes
1answer
19 views

Query - Why standardsetcontroller page is not visible in Lightning Page Tabs?

I have created one standardsetcontroller VF page to show list of record and this page should be open in lightning tab. Is it possible?
1
vote
1answer
102 views

How to change the size of Modal in Lightning

How can I update the size of the modal to fit only the size of the text inside it. This is what it currently looks like, This is the my code for this <aura:attribute name="recordId" type="Id"/&...
1
vote
1answer
54 views

How to get the Ip address of current user in apex of a lightning page

Earlier for a VF page, We were getting the ip address of the current user from visualforce page standard headers. But we cant use the same in Lightning controller. Does anyone know any solution to ...
1
vote
1answer
25 views

Identify number of Duplicate elements in multi array

I had a multi array as follows 0: {Name: "test1", Role: "Role1", Product: "Product4",Rate: 146,Rate_Override: 0} 1: {Name: "test2", Role: "Role1", Product: "Product1",Rate: 147,Rate_Override: 0} 2: ...
1
vote
1answer
23 views

Get Task description with line breaks in SOQL

I have a lightning component that displays a List of Tasks in a sidebar. I use a SOQL query in the controller to fetch a List that fits the criteria and display them in the component. I manually model ...
1
vote
2answers
42 views

How do I retrieve all the code from lightning?

My boss had been muddling through Salesforce by creating custom objects and triggers using the Lightning Web Interface. I want to pull all his work down in VS Code, commit it to git, and continue ...
-1
votes
0answers
21 views

Salesforce Knowledge Article Issue

I have knowledge enabled user and i want to have knowledge articles on the go for work orders. In salesforce classic i can see "Find Articles" standard button on Articles related list but when i ...
0
votes
1answer
80 views

How do I use Blob to create a PDF in my apex controller and use it in my Lightning Component without using VisualForce Pages?

This is the apex controller: public class pdfGenerate { public static final Integer limitRecords = 10; @AuraEnabled public static Blob generatePdf(){ List&...
1
vote
1answer
57 views

Lightning component focus on lightning:inputField

I have a <lightning:inputField aura:id="inputField1"> in a modal window, and I want to focus on this field when the modal opens, so that the user doesn't have to use their mouse or tab to set ...
1
vote
1answer
46 views

Send a JavaScript object to Apex using lightning

Is it possible to send a JavaScript object to Apex without using JSON.stringify and JSON.deserialize? Here is what I am trying to do: class A { class B { @AuraEnabled public ...
0
votes
1answer
17 views

how to retrive /fire a link from a cutom object field

I am storing the public url of a pdf file in a field of a custom object. I am able to successfully retrieve the url. how can I fire the url when a user click a button? Is it possible through JS ...
1
vote
0answers
35 views

Lightning:input[type=number] value attribute is string instead of number

I encountered a fascinating bug (or feature) in the lightning:input[type=number] component and I was wondering if any of you have had this problem before? I'll describe what happens: My lightning ...
1
vote
1answer
29 views

Reset validity on input

I have a registration form with Lightning inputs and validations, ex.: <lightning:input aura:id="email" type="email" label="Email" name="email" ...
1
vote
1answer
15 views

Track internal user behviour with google analytics

I know that I can add GA code to my visual force pages. Can I do a similar thing to my standard tabs? I have implemented a few processes and I would like to see do my users interact with components as ...
0
votes
1answer
26 views

Enabling Mydomain

I am Enabling MyDomain in the prod org and I have few questions that I don't have answers for. The org is using formassembly for web forms. Will there be any disruption to this after enabling ...
1
vote
0answers
27 views

Adding a sibling record via Visualforce in Lightning

Scenario Custom object Basket__c is the Master of two Detail custom objects: Fruit__c and Vegetable__c. Visualforce page vfAddVegetableFromFruitPage is embedded via standard Page Layout ...
0
votes
1answer
51 views

Read document cookies in Lightning Component [duplicate]

I want to read the cookies out of the DOM document object. I tried the following: Controller: init : function(component, event, helper) { console.log(document.cookie); // returns nothing } ...
0
votes
1answer
105 views

Dynamic Aura:Id inside Aura:Iteration [duplicate]

I have a component which will display a list of records in the table and user can edit and update each and every row. Issue: Since I have static aura:id inside aura:iteration, whenever am trying to ...
2
votes
1answer
38 views

Magic Mover Conversion Tool

I installed the Magic Mover conversion tool. We're looking to convert in sandboxes first then convert our production environment. I tested 1 record in our partial sandbox. Magic mover worked just fine....
-1
votes
2answers
82 views

Is it possible to show/hide or enable/disable a lightning quick action?

In opportunity, I created a quick action which invokes a lightning component. My requirement is, but it should be visible/enable only when stage name is "New". For all remaining stage name values it ...
0
votes
1answer
33 views

How to remove “Add to records(Add notes to records)” from Notes in lightning?

Is there a way to restrict adding a Note to different records through "Add to Records" standard button on Notes in lightning?
1
vote
1answer
60 views

How to redirect to the standard Lightning Account Hierarchy page? [closed]

How can I add a button to the custom lightning component, which will be hidden is Account is not a part of hierarchy and, if visible, will redirect to the standard Lightning Account Hierarchy page for ...
0
votes
2answers
47 views

Navigate to two different pages from same lightning component button

I have a custom lightning component. The same component is used within my Salesforce org in a lightning tab. Also it is used in my community. Now, my requirement is to navigate on two different pages,...
1
vote
1answer
18 views

Cannot resize width of Text Area on click and drag in LEX

I am using visualforce page with inputfield, I have field segment which is of type 'long text', that corner button on down right corner of input field(refer above image), we can click and drag both ...
-1
votes
2answers
49 views

Change Button label in $A.get(“event.force:createRecord”) modal popup

I've got a requirement to change label of Save buttons shown in New Record Modal which pops up when event.force:createRecord is fired. Just wondering, if this is possible through some event param or I'...
0
votes
1answer
63 views

Lightning listbox selection styling

In the developer docs they have a really cool Listbox-looking thing where you select an item (with nice hover effects and everything) and then it changes the content of several other components. For ...
1
vote
1answer
68 views

How to create two dynamic picklists for a Lightning component on App Builder?

Using the DynamicPickList class and the datasource attribute on the .design file is pretty straightforward. I can create a dynamic picklist this way. What I want is to be able to have two picklists....
0
votes
2answers
29 views

Moderation of changes to Account record

Background I would like Partners/Customers to be able to log in their community and update the profile details. But I would like to be notified of the changes and be able to roll them back / reject ...
0
votes
0answers
44 views

ScrollTo in lightning

I'm trying to simulate the ScrollIntoView Javascript capability in lightning. I tried to use the ui:scrollerWrapper for the same but it's not working and it's not scrolling up to the ui:scrollWrapper ...
0
votes
1answer
36 views

Is it possible to reload the current lightning component [closed]

What I am trying to able to navigate to a component that is it self. So example, I have component A that calls child component B and I want to be able to simply reload component B, and calling the ...
0
votes
1answer
77 views

Lightning Experience - Edit override with nooverride option

We need a conditional override in Lightning Experience which may return a custom component/VF page or will return the standard edit behaviour. We've been investigating various options for returning ...
1
vote
1answer
96 views

How to get a data attribute inside an option of lightning:select component

I am trying to get the data-office value inside this component, when the user changes: <lightning:select aura:id="Location" name="Location" onchange="{!c.locationHandler}"> ...
0
votes
0answers
25 views

Can't Activate a Lightning App Page in Managed Lightning App?

We have a managed lightning app that contains several navigation items. Once the package is deployed we found that we cannot activate a custom lightning app page for that managed app (or any managed ...
0
votes
1answer
27 views

Clone files one from one case to another

I want to copy files (not attachment sObject) from old case to the new one as feeditem. What sObjects should I copy?
0
votes
3answers
58 views

Is it possible to create a button to download all files attached to a record? [closed]

Currently, we have a page on our community in which people can go in and look at our cases and see and download all of the files attached to the case. That said, we recently got a request to create a ...
0
votes
1answer
30 views

Creating Opportunity and Opportunity Contact Role from Contact in LEX

In Salesforce Classic, you can create a new opportunity using a URL like the below: /006/e?ent=Opportunity&conid={!Contact.Id} This works great, creates the opportunity, and creates an ...