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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

0
votes
0answers
6 views

lightning:recordEditForm error. Field does not exist

When using lightning:recordEditForm I am getting the following error in the <lightning:messages />: Field does not exist. Here is the markup I am using: <lightning:recordEditForm aura:...
0
votes
1answer
16 views

Using lightning component in custom site

I have created a lightning component. I want to use that component in site and access that component through site url. For example, we can access vf page externally without authentication by adding ...
5
votes
2answers
38 views

issues with v.body and its components

I am having issues getting a component once it has made it into v.body. supposedly, v.body is a Aura.Component[], but when I get one of its elements I cannot make it behave like a component (can't ...
0
votes
0answers
8 views

lightning component if in a tab is not initialized until tab is clicked

So I wrote this component that listens to force:refreshView and I noticed that sometimes the handler is called when the component is not even initialized. Is there a way to force load/render a ...
1
vote
2answers
23 views

How to change lightning:input type value

I'm working on a toggle switch for a lightning:input password field that will allow users to view the password they've entered. <lightning:input type="password" aura:id="passwordInput" name="...
0
votes
0answers
19 views

OwnerId is updateable, but displayed in lightnig:recordEditForm as not

OwnerId is updateable, but displayed in lightnig:recordEditForm as not. Here is how I am retrieving fields by object API name: public static List<String> getFieldsInPageLayout(String ...
0
votes
2answers
24 views

window.open not working inside action.setCallback

From a lightning component I have to open a url but the problem I need to do the check before, and for that I created action.setCallBack where my check is done. the problem here is that window.open ('...
0
votes
1answer
28 views

Set custom placeholder in lightning:recordEditForm

I have a form in Lightning Components written using lightning:recordEditForm. Inside that form I have lightning:inputField which is a lookup. Is it possible to set a custom placeholder in this input? ...
1
vote
1answer
17 views

Progress Bar Salesforce Lightning component

There is a huge list on which DML will be happening on click of certain button. While the DML is happening, I need to show the progress bar. I got the progress bar component in Lightning Design ...
0
votes
1answer
15 views

Can I use third party library like Axios?

Can I use third party library like Axios in Visualforce lightning components? Thank you.
1
vote
0answers
25 views

Tell a component to update its' content when a related record is added on the same record page

I have a Lightning Component in a Record Page on Order object, and whenever I add a product (new OrderItem is created) in the order, I'd like to somehow notify the component to update its' content. ...
2
votes
2answers
29 views

Lightning Input datetime prevent value issue

I am using a lightning:input to get a date/time value in the users Locale. If the user picks a date that is beyond today I need to prevent that value from being entered. I am able to catch this ...
1
vote
1answer
35 views

$A.CreateComponents callback is not working

The issue is that createComponents method is being invoked but the $A.CreateComponents callback is not getting executed controller ({ doInit : function(component, event, helper) { ...
0
votes
0answers
18 views

Using Google translate APIs in Lightning components

How can we translate all the contents in a lightning component to the User's native language (not just by using labels) ? Is it possible by using google translate APIs if we can get the current user'...
1
vote
1answer
31 views

Reference static resource URL in Lightning Controller.js

I'm trying to reference a file in my Static References in a Lightning component Controller.js file. In my component file I would do this using the following pattern: src="{!$Resource....
0
votes
0answers
14 views

Dynamic vertical tab lightning component

I am bout to create an dynamic vertical tabbar which gets its content from a query later on. This turns out to be an issue as the aura:iteration seems to be not filled at the point of time the init ...
-2
votes
1answer
26 views

Save Case Comment in lightning component

My requirement is to save case comment in customer portal. I have three lightning components in one single page. One of the component is case detail component. When I try to save comment from ...
1
vote
1answer
24 views

Why adding “position:fixed” and “width:100%” styles to lightning:card element fixes right margin?

Let's consider a simple component: <aura:component implements="force:appHostable"> <lightning:card class="test" iconName="custom:custom62" title="Test Card"> <aura:set ...
1
vote
2answers
29 views

how to use progress bar on lightning component?

I put this slds progress bar code in my lightning component <aura:component controller="myController" > <div> <div class="slds-grid slds-grid_align-spread slds-p-bottom_x-small" ...
0
votes
0answers
16 views

Commonly Get Uncaught SyntaxError: Invalid or unexpected token When Referencing Bootstrap

Anytime I correctly call bootstrap inside my lightning components I am commonly getting Uncaught SyntaxError: Invalid or unexpected token at https://[my sales force domain] while in BUILDER VIEW... ...
0
votes
1answer
33 views

component.find().get(“v.value”) not working for unique local ID

According to lightning:select documentation the following should work:Component Markup <lightning:select name="selectBoatType" aura:id="currentBoatTypeChoice" ...
2
votes
0answers
19 views

nodownload video attribute in Lightning component

I can use the nodownload video attribute on a VF page. Can't seem to get it to work on component. Is there a way to get nodownload attribute to work? <aura:component> <aura:html tag="div"&...
0
votes
2answers
29 views

Error -[Cannot read property 'style' of null]

Error ID: -270960303 This page has an error. You might just need to refresh it. Error in $A.getCallback() [Cannot read property 'style' of null] Failing descriptor: {c:CommunityBreakingNews} ...
0
votes
0answers
12 views

Uncaught TypeError: Cannot read property 'nodeType' of null throws at resource/jquerymin311:3:10545 lightning

I am facing Uncaught TypeError: Cannot read property 'nodeType' of null throws at https://bandwidth--partial--c.cs47.visual.force.com/resource/jquerymin311:3:10545 error when I am an Clicking an <...
0
votes
1answer
16 views

Using Salesforce Media Objects

I want to display an image of a user with text right next to the image. Went through SLDS and found Media Objects to fulfill my need. Been trying to implement it but the text is always under the image....
2
votes
1answer
22 views

Change Lightning buttonIcon image source to static resource

I'm trying to swap out the icon image used in lightning:buttonIcon on-click to one that's in a static resource. However, this is removing the SVG icon when the button is clicked. Component: <...
0
votes
0answers
18 views

Is it possible to prevent sforce.one.createRecord() and $A.get(“e.force:createRecord”) from navigating to the new record?

Is this a duplicate? This is not an duplicate of Lightning force:createRecord capture redirect after save because I'm additionally looking for a solution primarily for VF an not only LC. I can't ...
0
votes
1answer
52 views

Preset a few fields in lightning:recordForm component

Is it possible to preset a few fields in lightning:recordForm component? For example, I have an object which has a master-detail field. And now I would like to have my lightning:recordForm being ...
3
votes
2answers
32 views

Is it possible to invoke a function after sforce.one.editRecord(recordId) or $A.get('e.force:editRecord') has been saved?

I have a VF Page embedded on a Record-Home Flexipage in LEX. I'm using my own VF-Container-Iframe-LightningComponent to host it, but since using the magic parameter isdtp=p1 I get the platform ...
1
vote
1answer
36 views

lightning component force:createRecord and defaultFields

Thanks to the help yesterday I am able to create a new record with the correct record types, next I'd like to add this component to the Contact Layout.When the user clicks a button the new Case record ...
1
vote
1answer
16 views

Merging multiple Field Sets to use only one general Save and Cancel Button using <lightning:recordForm>

I'm building a Lightning component page using multiple Field Sets which using tag so that every section has its own Save and Cancel button. I wanna make it simple and comfortable for the users so ...
0
votes
0answers
11 views

Bootstrap Navbar Toggle Does Not Collapse or Toggle in Community Lightning Component

I've seen a number of posts but not exactly sure if my issue is the same? Issue: Bootstrap nav menu does not toggle to expand or collapse when clicked embedded in Lightning Component, however the ...
0
votes
0answers
24 views

Creating records from selected values from lightning:dualListbox

I have 2 custom objects - hed__Course__c and Workshop_Preference__c. The goal is for each user to select and rank their Workshop Preferences from a given hed__Course__c list. I'm using lightning:...
1
vote
1answer
38 views

Custom Label does not work on Lightning Components

I'm using custom label on lightning components, but it always shows me English, and does not follow the user language. Someone knows what to do in this case? I've tried reference my custom label ...
0
votes
1answer
20 views

Lightning component not available in app builder

I have created a lightning component shell that I want to make available to the lightning app builder so I can drop the component into a new lightning app that I created. When I got to app manager and ...
0
votes
1answer
25 views

how to navigate between lightning components in Salesforce community?

Old way (using event force:navigateToComponent is deprecated) and new way (lightnign:navigation) is not supported in communities. How can I implement navigation?
0
votes
1answer
29 views

Get RecordTypeID by Name for Lightning Component

I am beginning to look at using a Lightning Component to quick create records, I have been able to get quite far but have got a little stuck when trying to set the record type id of the destination ...
2
votes
1answer
25 views

How to use force:editRecord from visual force page

force:editRecord event works fine in my lightning app, but the same does not work in the visual force page. I am aware that force:editRecord is handled by one app container but I am looking for work ...
2
votes
0answers
20 views

How to set currency code to <lightning:input type=“number” formatter=“currency”>

I am developing a custom currency field with lightning:input type="number" formatter="currency" component: <lightning:input type="number" formatter="currency" value="100" step="1"/> I have ...
2
votes
0answers
8 views

Is there a trick to embed Report Charts inside a custom Lightning Component (or anyhow so that they are available in the mobile app)?

In LEX I have embedded report charts in a tab on a flexipage like that: I need to expose the charts also in the mobile app. I know that it's possible to embed up to 2 charts on the page-layout and ...
2
votes
1answer
19 views

Is it possible to invoke a flexipage as a quick action or anyhow?

I found that we can use different action types unfortunately, neither of them is what I need. Is there a hack or trick to "route" to a flexipage? I need that functionality available in the mobile ...
1
vote
1answer
28 views

lightning:navigation not working in community

Here is component I want to navigate to, named TestCmp: <aura:component implements="lightning:isUrlAddressable" access="global"> <aura:attribute name="someId" type="Id" /> {!v....
0
votes
1answer
23 views

How can I align the text to center

Here is my for which I want the text should be displayed in the center of each cell. Here is my td. <td style="{!'background-color: #' + if(profileList.Quantity le 10, '00FF00', ...
1
vote
1answer
32 views

lightning:recordForm not showing fields when using recordId

I'm using lightning:recordForm with recordTYpeId for showing the user a new blank form when they need to input data. This works great since the page layout is controlled by the administrator for the ...
0
votes
0answers
35 views

What are the limits of using a third-party framework to build a community?

I have a client who wants a super custom looking Lightning Community. I know two options to build it are with Visualforce and Lightning Components. I tried using Lightning Components, but was met ...
-1
votes
1answer
29 views

Image not being displayed for Lightning Framework Specialist Step - 6 [on hold]

I am using the following piece of Code for Lightning Framework Specialist Step 6. BoatDetail.cmp <lightning:card class="slds-m-top_10px" iconName="utility:anchor"> <aura:set ...
0
votes
0answers
29 views

Navigating between two lightning components? Page is not redirecting

Hi I have a requirement , My 1st component is CommunityProductList Second component is communityProductDetail . CommunityProductList is showing a list of products in a CommunityProductList.Cmp &...
0
votes
1answer
29 views

Toggle buttons on click [duplicate]

i have a problem to figure out, how to toggle buttons in aura/lightning component. I have two buttons with functions showMore and showLess. The thing is, i want to only see button show more, and when ...
0
votes
1answer
29 views

How to get lightning lookup field value to save a record?

I have implemented a custom lookup component in lightning(by using Lightning: pill) and I embed it into another component. but don't know how to get the selected lookup field value? Child Component2: ...
4
votes
1answer
35 views

Static Resources not found by Customer Community Lightning Component

Static resources aren't loading when my Lightning Component is hosted on a Customer Community page. They do load in-app, so I'm guessing there's a namespace issue with my resource paths when I use the ...