Questions tagged [lightning-aura-components]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

iFrame Lightning Component - Community/Digital Experience

Goal: Use Lightning Component to expose a page from my company's site in an iFrame on our SFDC Partner Community (Digital Experience). Current Result: "This component has no properties" ...
user avatar
0 votes
1 answer
21 views

onrowaction in Lightning:DataTable is not working

I have a requirement, where I have to open a DataTable in the Model window after click into 'Select Template' Button. When Button clicked, all Templates records gets populated into Datatable, now when ...
user avatar
1 vote
0 answers
22 views

Trying to convert Apex to be used in an Aura Component Form

I am new to Aura Components, and I'm having a hard time trying to move them over from using Visualforce Pages and Apex. I am getting the following error: Non static method cannot be referenced from ...
user avatar
0 votes
0 answers
14 views

Migration VF with static resource to lightning component

I'm trying to migrate a visualforce page that loads scripts from static resources to a lightning component but getting a "could not find element 'app' to attach" error VF code: <apex:page ...
user avatar
  • 168
0 votes
0 answers
12 views

Using lightning carousel on record page: use custom image field in src

I am making a lightning record page for the account object. I have made a custom field in that object named Image__c with a correlating field named Image_URL__c . I would like this image to appear in ...
user avatar
-1 votes
0 answers
12 views

Is it possible to add hyperlink in VF email templated which can redirect to lightning aura component page

On approval process when an email is triggered to approval they have an hyperlink to approve or Reject which redirects them to lightning page of that record but instead of that I want to add a link ...
user avatar
  • 1
0 votes
1 answer
33 views

Refresh/Reload an aura component

I'm trying to reload/refresh the complete aura component for some actions like after hit the submit button in component. Currently i'm refreshing the complete page by using location.reload(); . ...
user avatar
  • 1,455
3 votes
0 answers
54 views

Passing input variables to Salesforce Scheduler Inbound Guest User flow hosted in a website

I've implemented and modified Salesforce Inbound Guest User Flow to accomplish the business requirements following this guide: https://goravseth.com/using-flows-as-a-form-tool-for-external-users ...
user avatar
-1 votes
1 answer
36 views

autopopulate User signature field to a lightning Component

I have one lightning Component which has one RichText Area field. My requirement is that when the lightning component loaded, the RichTextArea should be prepopulated with the User's signature. ...
user avatar
0 votes
0 answers
20 views

Aura component (observer): Refresh screen when record is changed

I want the record page to refresh when the Status__c custom field on the Custom object changes So Ive built an Aura Component (and added to the record page) which is displaying "test" only ...
user avatar
0 votes
0 answers
18 views

Uncaught Error in $A.getCallback() Aura component [closed]

Uncaught Error in $A.getCallback() [Cannot read properties of undefined (reading 'getElement')] Callback failed: apex://TCS_CTRL_TestCompr/ACTION$getStaticURL
user avatar
0 votes
0 answers
15 views

How to make Red Box on required field like Message type Name field has on it?

I want to added red box on repository field like name has. <div class="slds-float_none float-none" style="margin-top: -22px;"> <c:Strike_lookup ...
user avatar
0 votes
0 answers
23 views

This is my radio group is not displaying required = true

<lightning:radioGroup variant="label-hidden" value="{!v.ET3}" class="slds-p-left_medium slds-p-top_medium" label="Radio Group Label" options=&...
user avatar
0 votes
0 answers
18 views

Not able to pass a filter value to report from 'URL which navigates to a report'

I want to pass a 'parent object record id' to a URL which navigates to a 'report of child object records', and the report should be filtered out by the passed parent record Id as parameter. I'm ...
user avatar
-1 votes
0 answers
12 views

Flow error when trying to call action that navigates to record detail page. Can someone help me with this?

detailPageNavigation.cmp <aura:component implements="force:lightningQuickAction, lightning:availableForFlowActions, lightning:availableForFlowScreens"> <aura:attribute name="...
user avatar
-3 votes
0 answers
36 views

Uncaught Error in $A.getCallback() [Unexpected token < in JSON at position 0] Callback failed: apex://GDNewsApiDetails/ACTION$GetNewsDetailsforSingleC [closed]

Hi I'm getting this error when lighting component was loading. Uncaught Error in $A.getCallback() [Unexpected token < in JSON at position 0] Callback failed: apex://GDNewsApiDetails/ACTION$...
user avatar
0 votes
1 answer
47 views

Accessing Child Components in lightning-input DOM element

I am trying to populate the field that is nested within an aura component using DOM elements. I am able to access the parent with document.getElementsByTagName; however, I cannot access the child ...
user avatar
0 votes
0 answers
35 views

Multiple functions in onclick in Aura

I have one button "new case", and when clicking on it, it is opening one link and subtab. So I have 2 functions: one for link(linkbutton) and one for subtab(newsubtab). How do i use both ...
user avatar
0 votes
1 answer
45 views

aura lightning component: Field Integrity Exception null: source

I am learning how to use Aura to create lightning components for record pages inside of salesforce. All I am trying to do at this point is to print the name of the Record (I'm testing with account ...
user avatar
0 votes
0 answers
17 views

Filter out parent records when they contain no child records in apex

So I have a couple aura/lightning components that are displaying a customer order header (the parent record) along with it's order lines (the child records). Here's a pic: I have two methods that ...
user avatar
0 votes
1 answer
23 views

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

I have the following code in the cmp file: <lightning:input onchange="{!c.handleChange}" onclick="{!c.handleClick}" onblur ={!c.handleBlur}" /> Issue: I want the code ...
user avatar
  • 322
0 votes
0 answers
25 views

From Apex server data is not coming to Aura components

apex wrapper : public with sharing class DemoWrapper { public class Timesheet{ @AuraEnabled public String employeeId {get;set;} @AuraEnabled public String employeeName {get;set;} ...
user avatar
0 votes
0 answers
40 views

How to fire custom event in visual force page and handle it in Aura component?

I have a vfpage loaded in LWC using iframe and this LWC is called in a parent Aura component. I have a requirement where I have to fire an custom event in VFpage to send details and handle it in Aura ...
user avatar
  • 1
0 votes
0 answers
21 views

Aura. Center text in modal [closed]

I'm new to lightning and aura. So far I was able to figure out how to create a modal, but I'm having issues with the content inside. It's aligned to the left half of the modal and doesn't go pass the ...
user avatar
  • 21
0 votes
1 answer
19 views

navigatetourl not redirecting to salesforce url

I read a couple of documents about navigating to the page within salesforce by using "navigateToUrl". I used this to navigate to "google.com" it is working as expected but when I'm ...
user avatar
  • 233
0 votes
0 answers
23 views

Is There an Easy Way to Create a Feed Using Custom Feed Items?

Lightning-Aura-Component I have an array of feed elements not connected to an Id and I need to make a feed containing these elements. Is there an easy way to do this or must I recreate an entire feed ...
user avatar
0 votes
1 answer
47 views

Apex class access issue with profile : summer 22 release

We are facing many issue related to apex class access across multiple profile. This issue started just after summer22 release patch. Our org is impacted and many users with different profile are ...
user avatar
  • 21
0 votes
0 answers
24 views

Lightning Styling not working for LWC Embedded Aura Component

I have created one lwc component and embedded it inside aura component. When I try to load that lwc component [See 1st Pic] it is working absolutely fine. But when I try to override "New" or ...
user avatar
0 votes
0 answers
38 views

Create a Button Group with Icon and State in Aura Component?

I am new to Aura component, and I am trying to create Button Group that contains an icon and state where the color of the button changes on Selection. The purpose of the button is to return a value ...
user avatar
0 votes
0 answers
10 views

field_integrity_exception exception while saving aura controller

Got an issue while saving controller got from trailhead the error states field_integrity_exception [Failed to save helloMessageInteractiveController.js: null: Source] the code is : ( { ...
user avatar
2 votes
1 answer
26 views

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

I'm trying to create a custom LightningMessageChannel to use in my aura component. I followed the documentation and created a file for the message channel: main/default/messageChannels/...
user avatar
0 votes
0 answers
14 views

Uncaught Error in $A.getCallback() [state.getReturnValue is not a function] Callback failed: apex://CustomButtons/ACTION$getCaseType

Trying to create buttons that displays all the types of cases in the contact record page here are my codes. Component - <aura:component controller="CustomButtons" implements="...
user avatar
0 votes
0 answers
29 views

What is best practise to renew the session (connected app)

Context: I am the registered user for one of the Salesforce community, and hence I have the user_name and password provided by the community. I have connected app in place to authenticate myself and ...
user avatar
  • 1
-1 votes
0 answers
26 views

How we can see all content of content bodies and how we can delete those?

i tried to fetch all records from content document object with dataLoader i found only 8 records in content document. What else could be there and how i can delete to free the space in content bodies.
user avatar
0 votes
0 answers
35 views

Trying to Create a Feed Using an External Callout Using Chatter API

What works: All three files are communicating with each other The lightning button calls handleClick() handleClick() gets the return value of getFeedElements() getFeedElements(any given record ID) ...
user avatar
-1 votes
2 answers
37 views

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

I'm trying to implement a css property from the style class of the Aura component based on the value of Aura attribute along with certain other slds class as well, which will be static. Below are the ...
user avatar
0 votes
1 answer
43 views

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

I have a search page that searches the records and displays in table.I am trying to use lightning:buttonStateful in LWC js file to display a toggle button (follow/unfollow) in the column. But it is ...
user avatar
  • 29
-1 votes
0 answers
14 views

Unable to get the parent field values from force:recordData using targetFields

I am trying to get the parent field values of a contract in my Aura Component as follows: <force:recordData aura:id="contractRecordCreator" recordId="{!v.recordId}" fields="...
user avatar
0 votes
0 answers
15 views

Is it possible to create a floating / float label for form fields

I would like to have the form label be inline but float to the top left corner when active/targeted. Is this possible within Salesforce Lightning? See attached Material Design example.
user avatar
  • 1
1 vote
1 answer
93 views

LightningAlert.open from New and Changed Aura Components

hope everyone is doing fine. I`m new to Salesforce and still learning a lot from it. I need to chance some of the alert() function to the new LightningAlert, due to Chrome and Safari retiring support ...
user avatar
0 votes
0 answers
19 views

Modal window blocking lightning edit record page

I have a screen guided flow which I am calling through lightning component . Now that lightning component I have added to a lightning record page to be visible on a particular status value of case ...
user avatar
  • 197
0 votes
0 answers
29 views

Custom Lightning Page Template Component not able to find apex method

Hi when I tried to cal the apex method from the Custom Lightning Page Template Component it is a throwing error. .cmp <aura:component implements="lightning:recordHomeTemplate" controller= ...
user avatar
-1 votes
0 answers
15 views

having error in lightning development

({ doInit: function (component, event, helper) { console.log("Initialiation completed"); // build a list of 100 words const words = helper.getWords(6); ...
user avatar
0 votes
1 answer
31 views

lightning:inputAddress With Country Picklists

I am using the below lightning:inputAddress and specifically want to make the country field a dropdown/picklist. I am returning a map value from the apex method. But the values are not being populated ...
user avatar
  • 228
1 vote
1 answer
13 views

File Card Preview not working on Aura App

I have an aura component that uses the file card tag to display a file(contentDocument) <lightning:fileCard fileId='{!v.salesforceFileId}' description='Selected Template'/> This works fine ...
user avatar
  • 23
0 votes
0 answers
16 views

Name field is showing disabled for RecordForm in Aura

I am using lightning:RecordForm in Aura, but the name field is showing disabled.
user avatar
0 votes
0 answers
15 views

SLDS styling when embedding a flow in a custom Aura component

I'm attempting to meet a requirement, to default a lookup field value on a custom object when a record is created, this needs to be editable by the user prior to saving. To meet this requirement I ...
user avatar
  • 101
1 vote
0 answers
31 views

How to use LWC Component in VF Page? I tried many tutorials but none of them works

I tried many online tutorials how to use LWC components in VF Page, but I stuck at only one result - VF Page is loaded properly but not showing LWC component. Only the VF Page heading is showing and ...
user avatar
-1 votes
0 answers
18 views

How call and get values from rest api in salesforce [duplicate]

hey I am new to salesforce, i need to call a rest api and simply get values to populate a list using apex. i have no idea where to make the actual rest api call and how to pass the returned value to ...
user avatar
0 votes
2 answers
38 views

LWC not showing when calling inside VF Page Salesforce

I have a component which suddenly stopped working for the last 2 days. I have an LWC component which I am using inside VF Page Below is the structure priceConfiguration VF Page <apex:page id=&...
user avatar

1
2 3 4 5
186