New answers tagged

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

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

Request URL cannot be made to Aura framework internal API endpoints

I just encountered a similar issue, and found this Known Issue: https://trailblazer.salesforce.com/issues_view?id=a1p3A000001Sp0EQAS Based on the issue details, it looks like Salesforce has no plans ...
user avatar
0 votes

what's the equivalent of helper in LWC?

Use below approach.Fist import the helper and from inside of connectedCallback call the helper import {contactLWCTableHelper} from './contactLWCTableHelper'; @track helpText; async connectedCallback() ...
user avatar
0 votes
Accepted

How do I pass Aura v.recordId to a string literal attribute?

The {! signals the start of an expression, so you would want to always start your expression with that. However, this will be difficult if not impossible to write as an evaluated expression. It would ...
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
Accepted

Salesforce Aura lightning:checkboxGroup

As mentioned in the developer guide A component can only traverse the DOM and access elements created by a component in the same namespace. This behavior prevents the anti-pattern of reaching into ...
user avatar
  • 4,677
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

Expand and collapse a dropdown in lightning aura

First and foremost, is this copied from your actual source code? Because if so, the first place you should be looking is at your variables and their names' spelling and casing. For example, v....
user avatar
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
1 vote

How to use forceChatter:feed with a record?

I was facing same issue I fixed it using the feedDesign Attribte like below: <forceChatter:feed type="Record" subjectId="{!v.recordId}" feedDesign="DEFAULT"/>
user avatar

Top 50 recent answers are included