New answers tagged

0 votes

LightningAlert.open from New and Changed Aura Components

@Lucas is it possible to provide the complete code where you are facing this error ?
user avatar
  • 1
1 vote

Accessing Child Components in lightning-input DOM element

You can't nest input fields, neither in LWC or even normal HTML. The reason why this doesn't work is because lightning-input doesn't have a default slot. Even getting the input element wouldn't set ...
user avatar
  • 433k
0 votes

aura lightning component: Field Integrity Exception null: source

update your helper, the line where you are setting the action parameters from this: action.setParams("inID" : component.get("v.recordId")); to this: action.setParams({ "inID&...
user avatar
  • 176
0 votes

Aura Component: (lightning:input) Fire 'onclick' before the 'onblur' event

JavaScript does not fire events "in parallel." There is only one execution context (aside from Workers, outside the scope of this answer), so events must be processed one at a time. Browsers ...
user avatar
  • 433k
0 votes

navigatetourl not redirecting to salesforce url

Use force:navigateToSObject instead, this enables you to navigate to an sObject record specified by recordId. createRecord : function (component, event, helper) { var navEvt = $A.get("e.force:...
user avatar
  • 12.8k
2 votes

Apex class access issue with profile : summer 22 release

I am not 100% sure, why it is happening to you only now because in Winter '21 there is release enforcement which has been enforced. Restrict Access to @AuraEnabled Apex Methods for Authenticated Users ...
user avatar
0 votes

Lightning Collapsible and Accordion Dynamic aura id for sections

allowMultipleSectionsOpen="false" or true, set this in accordionsection and it will work
user avatar
0 votes

FileReader onload not working in lightning component

@sfdcbox, how can I fire objFileReader.onloadfor multiple files. My component allows multiple file upload <lightning:input aura:id="fuploader" name="files" type="file" ...
user avatar
1 vote

Pushing LightningMessageChannel fails with "Cannot read properties of undefined (reading 'split')"

When I deleted and recreated the scratch organization, I was able to push the lightning message channel to the organization. I simply used sfdc force:org:delete and sfdc force:org:create for the ...
user avatar
1 vote
Accepted

Apply css class based on specific condition in Lightning component along with standard Lightning Design System

You can add the the standard SLDS class inside the expression in both conditions. something like this <div class="{! v.applycss ? 'slds-col slds-size_2-of-12 customColor' : 'slds-col slds-...
user avatar
  • 12.8k
0 votes

Apply css class based on specific condition in Lightning component along with standard Lightning Design System

You don't need to compare a Boolean value to true, it's already true. You can try below one: <div class="{!'slds-col slds-size_2-of-12' + v.applycss ? 'customColor1' : ''}">Test ...
user avatar
  • 460
0 votes

LWC not showing when calling inside VF Page Salesforce

LWS and Message Service do works fine in Lightning Experience but not in Classic. Changing to pubsub model works perfectly.
user avatar
0 votes

How to add lightning toggle button lightining:buttonStateful in lwc component js file

based on this documentation, button type only supports the following type attributes: disabled, iconName, iconPosition, label, name, title, variant. So to achieve what you want, you need to create ...
user avatar
  • 176
1 vote
Accepted

lightning:inputAddress With Country Picklists

Remove square brackets in controller Replace countryList.push([{'label': resp[key], 'value': key}]); with countryList.push({'label': resp[key], 'value': key}); Change Mapping countryCodeMap.put(ccm....
user avatar
2 votes

File Card Preview not working on Aura App

This is working according to the documentation lightning:fileCard. Take a look at "Targets" Lightning Experience, Experience Builder Sites, Salesforce Mobile App It should be mentioned as ...
user avatar
0 votes

The campingList JavaScript controller isn't calling 'saveItem'

también me encontré con este problema y leí qué desafío nos pide que hagamos línea por línea. El desafío de Trailhead no nos pide que llamemos al método HELPER desde campingListController.js. ...
user avatar
0 votes

LWC not showing when calling inside VF Page Salesforce

While there might be more errors than this within the priceConfiguration component, the lightning:navigation component is not supported in VisualForce pages. Here: Descriptor Lightning:navigation | ...
user avatar
0 votes

How to reset page on cancel button using RecordEditForm in salesforce aura components

RecordEditForm will query your record when loads. I don't think you can reset the form as it means you are deleting the record field data.
user avatar

Top 50 recent answers are included