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

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 ...

0
votes
0answers
4 views

vertical expandable section

I have created a lightning component which displays an activity timeline . The user wants to expand/collapse this section (it shoudl collapse towards left and expand toward right). Basically I want ...
0
votes
1answer
10 views

Conditional styling for classic and Lighting in Salesforce

I want to apply style(code below) only for lighting users. <style> @media (min-width: 48em){ .pbHeader .pbButton:last-child { padding-right: 0; text-align: ...
0
votes
1answer
12 views

How to hide or disable “add to campaign” button in Contact page layout ( LEX )

I tried to remove from contact page layout the "add to campaign" from Search Layouts. But it's still visible second step config: any advices?
0
votes
0answers
13 views

lightning:map doesn't refresh

I'm trying the new lightning:map tag from the winter 19 and i'm having some issue. I achieve to display a simple map filled with a list of objects. They are shown as markers on the map and also on a ...
0
votes
0answers
5 views

Email form in Activity Composer does not render

I am having issues with Salesforce not rendering the form fields to send an email from both the activity composer as well as the global action. I am system admin profile so I have the send email ...
1
vote
0answers
7 views

Remove Salesforce lightning attributes from a managed package

It seems we're not able to remove attributes from a managed package. Failed to save xxx.design: You can't remove design attributes 'XXX' when the component implements a Lightning Page interface.: ...
0
votes
1answer
13 views

Render Managed Package Object Records in lightning component

I have a requirement to display all the child records of Account. Child is Managed Package Object, Named as "PCQQ__Quote__c". So I am getting the records from server but when I am doing component.set('...
0
votes
2answers
22 views

Custom button without javascript code

I have a requirement where I need to pass record Id to apex class on click of a custom button(which is placed on the standard page). In order to pass record id, I need to write javascript code, but ...
0
votes
0answers
24 views

How to set existing value to the custom picklist field in lightning component

I have created lightning component to display as options from the related list in the parent object which is invoked in lightning app and placed as inline vf page in parent record. Issue When an ...
0
votes
0answers
14 views

How can I remove checkboxes from lightning:treegrid

We have an application where we need checkbox to appear in only the top level record of tree-grid, and not the subsequent children. Is there a flag or a nitpick to achieve the same ? Currently I'm ...
1
vote
0answers
12 views

How can I open Field Service Lightning from my own app?

I have one iOS app and I want to add a link to open Field Service Lightning app from there. Is there any URL Scheme like Saleforce1 has?
0
votes
1answer
22 views

Redirect from lightning page to record page on classic

I'm trying to redirect from a lightning custom page to a record page in classic. I tried this var navEvt = $A.get("e.force:navigateToSObject"); navEvt.setParams({ "recordId": caseId, "...
0
votes
1answer
26 views

How to Get the QuickAction modal Label in Lightning Component?

Tried with var target = document.getElementsByClassName('modal-header slds-modal__header'); and var label = document.getElementsByTagName('p'); but in both empty array is recieved.
0
votes
2answers
38 views

Add increment step in lightning:input

I am trying to add a counter functionality in lightning:input like this guy has done for input tag. I have written following code: <div class="uiInput uiInputNumber uiInput--default uiInput--...
1
vote
0answers
16 views

Skip Record type selection option does not work when overridden with Lightning component

Skip Record type selection option does not work when overridden with Lightning component. This seems to be fixed as per https://success.salesforce.com/issues_view?id=a1p3A0000018AqwQAE . Any idea?
1
vote
1answer
23 views

Is there a way to hide Save and New button from force:createRecord modal in lightning?

I want to use force:createRecord so that layout assigned to the recordtype gets displayed. But I don't want to show Save and New button as it takes me to the standard new page. I want to get back to ...
0
votes
1answer
18 views

Lightning : Unable to update records displayed using wrapper class

Can anyone please help me in this? My initial Use Case Scenario was to display a list of records in a lightning component, and providing the ability for users to update the same records. This was a ...
0
votes
0answers
8 views

Service App Remove Visibility of Profile

Would like to remove the visibility of the standard service app on external profiles since they can access the internal org using the app launcher of the community. As of now, the default and visible ...
0
votes
1answer
16 views

Lightning Dashboard Filter Limitations

I am using Lightning. I want to display a list of all u.s. states in a dashboard filter so the user can filter the data set by any state they wish. I'm running into a salesforce limit and it appears ...
0
votes
0answers
22 views

strike_multiSelectPicklist component set selected value on init [on hold]

I am using strike_multiSelectPicklist component and i have to set few values already selected on init function. Can you please help on same with sample example. below is my sample code Mark Up <c:...
3
votes
1answer
29 views

Unable to open another Lightning Component in a Modal pop-up when called from within a Lightning app

Here is my first Component called Modal: <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
1answer
25 views

How to create Notifications in Salesforce Lightning

How do I create Notifications in Salesforce Lightning? For example, how would I get a Task/Reminder created via Process Builder to appear as a Notification?
0
votes
1answer
22 views

Need to add custom button in lightning related list record (drop down along with edit and delete)

Is it possible to add new action/button along with edit/delete values in drop down in salesforce lightning in the related list record. In Opportunity record(in lightning) i have a related list. In ...
0
votes
1answer
16 views

Hide checkbox column and color some rows of lightning-datatable [duplicate]

I have data of customers and their numbers. I want to show it in dataTable. Additionally, I am trying to color those rows whose numbers are invalid and also disable the checkbox for that row. I have ...
1
vote
1answer
25 views

Passing an object parameter, containing employee enroll form on a Helper to Apex method in lightning

Currently, sending a Employee enroll input form on a object H_HRBasic__c to the apex class method CMP <aura:attribute name="HRB_S" type="H_HRBasic__c" default="{'sobjectType':'H_HRBasic__c', ...
0
votes
0answers
27 views

Performance very slow after changing version from 39 to 40

updating version from 39 to 40 everything slows down. Everything works but slows like anything. Even if I click on checkbox I have to wait for it to be checked. In console I keep on getting exception ...
1
vote
1answer
18 views

Add Input Mask for Phone Number

I have a Lightning input field for a phone number: <lightning:input type="tel" label="Phone number" name="phoneNumber"/> I want to display a mask in the input field so the phone number is ...
4
votes
0answers
27 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
1
vote
0answers
16 views

How to use a Custom label expression in a flexipagecomponent?

I have a default lightning Home Page. In the Home_page_Default.flexipage-meta.xml you can clearly see the structure of the page: FlexiPage FlexiPageRegion ComponentInstances ...
0
votes
1answer
16 views

Is it possible to set up devTools workspace in chrome with Salesforce/lightning metadata?

I'm curently working on some javascript in lightning and it would be so much faster if I could just setup a workspace in chrome devtools so the changes are reflected in the page immediately. Is this ...
0
votes
1answer
31 views

Can the “Path” element be hidden once the final criteria has been met?

I'm wondering if its possible to turn off or hide the "Path" across the top when the final criteria is met. Then have a new path show up in its place. Currently the only way I can think about getting ...
0
votes
1answer
13 views

place the Icon Inside of lightning input

Here is my code: <div class="slds-form-element__control slds-input-has-icon slds-input-has-icon_left"> <lightning:icon class="slds-icon slds-input__icon slds-input__icon_left slds-icon-...
0
votes
1answer
24 views

Lightning Filter Component

We are building a component that allow user to search for list of records. Was wondering if there is a standard filter component that can be applied with the possibility to apply multiple fields and ...
0
votes
0answers
26 views

Page Reference method opens in a new tab in lightning. How to stop it?

I am trying to implement google drive integration with salesforce, in which i am generating the authentication URL and send it to google to receive the access token. But while implementing that i came ...
0
votes
0answers
9 views

Close split view in lightning application from javascript

I am trying to figure out, how can I close split view of my lightning application from javascript. What I am doing: I am overriding the "new" button with a lightning component on a custom object. I ...
0
votes
0answers
23 views

How to call a lightning component from a url

I have a simple lightning component called X. Now I want to add a custom detail page button in another lightning component say Y and this custom detail button when clicked will call the lightning ...
0
votes
0answers
6 views

Lightning Google Contact Sync Details Missing

I've installed Google Contact Sync for Lightning, but can't seem to bring over more info that the contact name. Shouldn't email be automatically syncing? And is there a way to map more fields?
1
vote
1answer
19 views

Can't pull back more than 2k rows from Saved Reports using Lightning

Are there differences between the Reports API in Lightning and Classic? When one of our users using Classic pulls a Saved Report we get all the rows. When they are using Lightning and pull a Saved ...
0
votes
2answers
34 views

Cannot read property 'WhoId' of null when using lightning data service with task

I am actually using force:recordData to get info from a task and then I want to create an event from it. So I created a lightning component to be used in a lightning action. The component code is as ...
0
votes
2answers
48 views

New lightning component opened from another, but tab shoes “Loading…”

I'm opening a lightning component from another. It opens in a new tab inthe same workspace, as expected. But the tab name of this new component shows "Loading..." with the loading icon. I've tried ...
0
votes
1answer
20 views

{!GETRECORDIDS($ObjectType.TestObject__c) in Lightning Component

I have GETRECORDIDS in OnClick Javascript button and im trying to convert the OnClick Javascript button to Lightning Component. How do i do this ?
0
votes
0answers
11 views

How to override standard view link using lightning component

I have a requirement where i need to override the standard view link of a account with lightning component with read only mode for specific profiles and with edit mode for specific profiles.How i can ...
0
votes
0answers
13 views

Get mouse cursor coordinate inside a div in lightning

Can i get the mouse coordinate inside a table grid? I am getting the display screen coordinate, But how i'll get the mouse coordinate inside data table?
0
votes
1answer
19 views

How do I build a related list against a Files Library (in Lightning)

I want in the related tab of a record to have a Library related list shows all the files in a library? Is that possible?
0
votes
0answers
20 views

Need Rich text editor at community

I need more expanded Rich-Text-Editor, something like tinyMCE. I thought I bind it at visualforce. There I am stuck because at builder I cannot edit it and by self community has editor on. I need to ...
0
votes
2answers
33 views

What is the alternative method of jquery “scrollHeight” in salesforce-lightning?

I want to get a height of a class in salesforce lightning. document.getElementsByClassName("simpleclass") Output showing {} How can i retrieve dom and get the height of that?
2
votes
1answer
91 views

Is lightning:recordForm is supporting for custom settings?

I need to create a lightning component to Edit a particular Custom settings Record using the lightning:recordForm. But I couldn't able to achieve it and got the following error. I will share my code ...
0
votes
1answer
28 views

Select2 JQuery onChange disable Button

I am using select2 JQuery in my lightning component and i have to disable button on this component once all values are selected. below is sample Code. MarkUp <aura:component controller="...
-2
votes
0answers
12 views

click on the Outside of the DropDown Menus not closing [closed]

I am working on the dropdown Menus in Lightning. when click on the dropdown menu,the menu list are open as well as closed as expected and also When click on the Menu Item it should navigate to some ...
5
votes
1answer
86 views

Different values from URL.getSalesforceBaseUrl().toExternalForm()

I have a managed app that uses URL.getSalesforceBaseUrl().toExternalForm() to create a Remote site for ToolingApi. This works great in all environments (Production, Dev/scratch org), however, it's ...