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
votes
0answers
10 views
1
vote
1answer
40 views

Display apex error message in lightning component

I am trying to display apex catch exception error message in lightning message. I have tried below in helper. but it didn't work. And let me know how to call this from Lightning component. Helper: ...
0
votes
0answers
13 views

Placement of Quick Actions

I created a Quick Action to do the job of a URL hack, create a new related record with auto-populated fields. (Like this) Now, I want to use this action in a community layout that I built using the ...
1
vote
1answer
29 views

How to upload files to a related record using lightning components?

I'm trying to upload a file to a related record using just the <lightning:input> component. The <aura: component> includes the force:hasRecordId and by using {!v.recordId} I am able to ...
0
votes
1answer
31 views

How to use pick list in lightning?

Component <aura:component controller="contactSaveCtrl" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
2answers
40 views

Style in lightning datatable. Overlap values

I have a lightning datatable, and I have a problem. If I edit the bottom column, the values is overlap on the table Steps: click on editIcon on botton column (OK), click on editIcon on other value of ...
0
votes
0answers
16 views

how to remove lable in lightning record edit form fields

i want to remove field label in lightning:inputfield.i use variant="label-hidden",but lookup fields labels are not removing it removing label for other type fields.
0
votes
1answer
18 views

Is there a way to conveniently preview a Visual Force Page in VS Code?

So I'm trying to switch my IDE from the Developer Console to VS Code. But the thing is that the changes we make to a lightning component or a vf page in the dev console reflect in seconds on the app ...
1
vote
0answers
29 views

Lightning component works properly on Sandbox but does not on Production

I have a Visualforce page that uses $Lightning.createComponent to handle Lightning component. This page has standardController="Account" and used as replacement of standard action "Create new Account"....
1
vote
1answer
22 views

Input Validity when dynamically displaying fields

My form requirement has 12 toggles. If a toggle is selected, a text area field is displayed and input is required. All text area fields are hidden unless the related toggle is selected. If 2 or more ...
0
votes
0answers
17 views

Lookup Filters in custom lightning:recordeditform lightning:inputfield using prepopulated values

I'm using lightning:inputfield in a lightning:recordeditform for lookup fields - we'll call them Party and Warehouse. The Warehouse lookup has filters on it based on the Account field - Warehouse....
1
vote
0answers
16 views

Change the style of 1st list's element through onclick from 2nd list's element

I have 2 lists. First is all my objects. Second - selected object (I use "Select" button to add my obj to second list but without deliting it in the first list). I can also delete the objects from the ...
1
vote
1answer
53 views

Tooling API - Invalid field issue

I am using Rest API to update the Apex trigger using ApexTriggerMember. I am using the below json string as body in request. String json = {"MetadataContainerId" : "1dc7F00000DD9UYQA1", "FullName" : "...
0
votes
0answers
16 views

How to pass record Id to another lightning component?

I'm creating a button from a custom object's record, say for example 'OSample'. The button is to call a lightning component or form that enables the user to update a donation. since it needed to be ...
12
votes
1answer
117 views

Value provided is invalid for action parameter [VAR] of type 'String'" instead

Seems like upcoming changes in Spring 19 are causing us issues with "AuraEnabled" methods. Since forever now, primitive types were sent from Aura to APEX as String only as explained here: https://...
3
votes
0answers
22 views

Lightning datatable not loading data when scrolled to the bottom

I have created a lightning component which has a lightning:datatable that loads more data as I scroll down. The data loads fine when I use the component explicitly in an app. In the below picture ...
0
votes
0answers
15 views

Is there a way to create a custom toast instead of a javascript alert on a visualforce page? [duplicate]

What I require is that when I select a value from a picklist I need a toast that has a message for the user. I have already achieved this through the js alert but that wasn't that difficult. But I don'...
0
votes
1answer
33 views

How to use Lightning lookup component in PageBlcoksection of VF Page?

I have created a lightning lookup component using below link ReUsable custom Lightning component But I need to be placed this into PageBlock section of VF Page. <apex:pageBlockSection title="...
0
votes
0answers
19 views

Dynamic data table in salesforce Lightning [on hold]

I am currently looking for a possiblity to display an empty data table to accept the data from the user and create custom records in salesforce using the rows that user entered in the table. Give a ...
1
vote
0answers
15 views

How to customise columns in Add Products popup

Question How do I customise the columns that appear in the Add Products popup which appears if you click the Add Products button on the Products related list on the Opportunities record page? What I'...
0
votes
0answers
18 views

How to create the Dynamic table in Lightning component

I am new to Lightning, I wants to make this below table dynamic, So once the searchResult will be having respected data i can show it dynamically by using Iteration tag. Column name and Rows should be ...
0
votes
1answer
25 views

How to use custom label during call of Lightning Component in VF Page

I am trying to use custom label during call of a lightning component in Visualforce Page. but its giving me blank value. can anyone please help me how i can do this, CODE: $Lightning....
1
vote
1answer
19 views

How to setup Salesforce Identity Provider to work with Twilio Flex

What is the process to setup Salesforce Identity Provider to work with a 3rd party like Twilio Flex? Whenever I try to login, I get this error: Incorrect HTTP Method
0
votes
1answer
17 views

Change the div's css style in <aura:iteration>

I have a component: <aura:iteration items="{!v.objects}" var="obj"> <lightning:layout multipleRows="true" class="layoutBigCardsColumn"> <div class="slds-...
0
votes
0answers
13 views

Save Email Conversion

I'm trying to use the Lightning Experience UI to send an Email from a Record Homepage via the Activity tab. That way the email that sends from this UI is saving (in a not surprisingly way) in the ...
0
votes
1answer
27 views

How to currentdate.getDate() in JavaScript for Lightning Web Component?

I'm trying to write a test class to automate my several tests in register forms, but the JavaScript currentdate.getDate() isn't working for some reason that I don't know. I'm trying the following: ...
0
votes
0answers
21 views

get image from Attachments related to record and render into lightning:inputrichtext as a preview [on hold]

I need to display Images inside lightning:inputrichtext as a preview. The image will be related record from Notes and Attachment object. Is this is possible?
1
vote
0answers
28 views

I am clicking delete record and record are getting deleted but it does not refresh the table in LWC

import { LightningElement, track,wire,api } from 'lwc'; import getContactList from '@salesforce/apex/ContactController.getContactList'; import deleteContacts from '@salesforce/apex/ContactController....
0
votes
0answers
21 views

lightning component to sort task based on status then second priority is created date [on hold]

I am trying to sort the lightning component of task based on status then by created date. When I click on sort by Status, it should update the second sort of created date by ascending. So in the below ...
0
votes
0answers
16 views

Any simple solutions for displaying photos in a related list on Lightning record page?

I'm looking for an elegant solution for displaying photos in a related list in the sidebar of a record page. Similar to this screenshot, but having the photo display the full width of the sidebar, ...
0
votes
1answer
24 views

Lightning component button refresh

I have a lightning component button that updates the status of a case when clicked in Lightning. Is there a function that I can use to have the page refresh when clicked because as of now, I have to ...
0
votes
1answer
19 views

How To Build Collapsible Lightning component of 3 level

How To Build Collapsible Lightning component of 3 level Level3 +Level2 Level1 level2 dependent on level3 and level1 dependent on level2 for ex:Bundle product--> Option Product --->Features one ...
0
votes
0answers
20 views

reload the lightning page after calling vf page from lightning controller

I have a lightning component from where I am firing a vf page. That vf page is downloading some data as excel file. I want to redirect to same lightning page after the calling the vf page. but it is ...
0
votes
1answer
35 views

Lightning design system(LDS)- what is possible?

We've implemented couple of lightning based projects involving medium usage of LDS. So far our approach is to build any UI is Check the requirements from business Consider possibilities within LDS ...
0
votes
2answers
38 views

String Split function is not working in the Lightning JS contoller

I am getting array of string from component's attribute to lightning controller, now I want to split that string to comma separated values and want to assign that to another component variable but ...
0
votes
0answers
11 views

setTabHighlighted() returns error “Error: Invalid option property `type`”

setFocusedTabHighlighted : function(component, event, helper) { var workspaceAPI = component.find("workspace"); workspaceAPI.getFocusedTabInfo().then(function(response) { ...
0
votes
1answer
26 views

How to send the div's style through button's onclick in <aura:iteration>?

Even the example from "Lightning Aura Components Developer Guide " doesn't work. I can't set the style to my div. It's because of iteration. How can I fix that? cmp: ...
2
votes
1answer
15 views

How to display Action colum when we convert VF Page into lightning page?

I have contact related list under the account. in Classic if I open any account the related contacts are showing with action column where we can check multiple contacts and mass update(Custom button). ...
4
votes
1answer
446 views

How to add a functionality to stop copy paste on an input field in lightning?

I'm making a form that includes two fields, Email and Re-Enter Email. I don't want the user to copy and paste the email id in the second field. I have to prevent right clicks on the re-enter field and/...
0
votes
0answers
24 views

Limitations with Cases in Lightning

From my understanding there is no 'Close Case' button for Cases in Lightning. Would it be possible to create a custom button that references a flow that could be present at the header along with other ...
0
votes
1answer
30 views

Increase size of Lightning Component to fit properly on a record page

The component I created on the right appears smaller than the activity card. I've tried several ways to increase it's size but have failed. Is there a way to make it look like the card below it? ...
0
votes
0answers
20 views

How to retrieve Parent Object custom fields in Lightning Data Services? [duplicate]

I have a custom field Entity_Id__c on Opportunity Object. I'm building a Lightning Component and want to use from Quote Object via Lightning Action as below : <aura:component implements="force:...
0
votes
0answers
17 views

Lightning:inputField Could not find picklist values for field using GlobalValueSet

I'm using the lightning components lightning:recordEditForm and lightning:inputField to compose a form for a Record Creation. the component works correctly as long as I do not use a picklist field ...
1
vote
1answer
21 views

unable to fetch latest attribute value in lightning

I have picklist in lightning. On onchange fuction it is getting a data from apex method and setting it in a attribute. And just after that when i trying to fetch the value of that attribute. I am ...
0
votes
0answers
16 views

Choose target location for force:createRecord event

I'm firing force:createRecord event from custom lightning component in lightning service console and it seems to always open a new tab or subtab with the record creation form in it. Is it possible to ...
0
votes
0answers
10 views

salesforce 1 IOS standard back button

On click of app on navigation menu, Parent component 'A' gets open,which inside init method redirects to another component B.On IOS, When click on standard back button, it redirects to component A, ...
0
votes
0answers
17 views

lightning:input press enter and hide mobile keyboard

I have a <lightning:input which is used to search for products. CMP <lightning:input onchange="{!c.handleSearchTermChange}" aura:id="searchTerm" label="Search Products" type="search" /> ...
0
votes
1answer
23 views

Knowledge Data Categories in Lightning Knowledge

I'm working on a knowledge conversion from classic to lightning. I've migrated a small collection of article types to record types and enabled lightning knowledge. The problem I'm having is related to ...
0
votes
1answer
19 views

<ui:inputradio is allowing to select multiple records

I have used "<ui:inputRadio>" tag for selecting the one record in the list of records.It is working fine when the all the records are loaded in one page. Its allowing to select multiple ...
0
votes
1answer
19 views

Dispaly an Error Message on unsuccessful POST function

I have a requirement where the user is updating a table and when he/she clicks on the Save button a POST service is called and the data gets saved. The requirement is now enhanced where by the user ...