Skip to main content

Questions tagged [custom-event]

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

Is Lightning message channel supported by popstate event in LWC? unable to get the message when user click browser back button

Publish component: import { LightningElement } from 'lwc'; import { publish, MessageContext } from 'lightning/messageService'; import submitCaseTAPoc from '@salesforce/messageChannel/...
Sudeshna Behera's user avatar
1 vote
2 answers
61 views

LWC Get Data From Descendants - Events vs Public API

In the Call Methods on Child Components documentation, it says: To communicate up the containment hierarchy, fire an event in a child component and handle it in an owner or container component. See ...
Morgan Marchese's user avatar
0 votes
0 answers
75 views

Custom dispatch event firing in one sandbox but not in another sandbox

I am firing a custom event from child lwc to parent Aura component the code is working in the one sandbox but the same code not working in the another sandbox. I tried to console the events , the one ...
Sahil Gupta's user avatar
0 votes
1 answer
457 views

LWC - @api property does not render on child component

I have a 4 layers LWC component: great-grandparent > grandparent > parent > child. I want to pass an @api property from great-grandparent to display and modify data in child. Because the ...
Pam's user avatar
  • 107
1 vote
1 answer
8k views

Pass various data from Child to Parent LWC

Hello everybody I have a child LWC inside of a Parent LWC. In the child component I have some input fields that I pass to the parent component. In one of them I have a combobox field so when the user ...
TechGuy's user avatar
  • 127
3 votes
1 answer
2k views

What's the benefit of using Custom Event over Lightning Messaging Service? [closed]

Custom Events are used to pass the data from child component to parent component but we can achieve the same functionality with Lightning Messaging Service(LMS). What is the benefit of using custom ...
PARAG TALUKA's user avatar
0 votes
0 answers
377 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 ...
Mahesh's user avatar
  • 1
0 votes
1 answer
394 views

How to configure config.json so that batch contacts gets processed?

I am designing a journey builder custom activity. The official documentation says execute - The API calls this method for each contact processed by the journey. However I want to to configure ...
sfmcconnect's user avatar
0 votes
0 answers
171 views

Why Am I getting NoErrorObjectAvailable error when ever i try to refer to the custom event of child in parent

PARENT.HTML <template> <lightning-layout multiple-rows> <!-- Top --> <lightning-layout-item size="12"> <lightning-card title="Find a ...
Sairam Sravanaboina's user avatar
0 votes
1 answer
1k views

CustomEvent not firing to parent component

I am not sure why, but my dispatch event isn't firing to the parent when the combo box changes selections. The alert is getting triggered, but setting the boolean values do not get triggered when the ...
Tristan Berger's user avatar
0 votes
1 answer
624 views

Event not getting fired from a lwc custom lookup component

I have used a custom lightning datatable which has a component displayed as a lookup customLightningDatatable.html import LightningDatatable from 'lightning/datatable'; import lookupTemplate from './...
Madhurima's user avatar
  • 1,435
3 votes
3 answers
10k views

TypeError: parameter 1 is not of type 'Event'

I am extending the functionality of the lightning-datatable component and while trying to dispatch a CustomEvent I am receiving the following error: TypeError: Failed to execute 'dispatchEvent' on '...
Gabriel Serrano Salas's user avatar
2 votes
1 answer
786 views

Distinguish between the Standard DOM event and the CustomEvent

How to distinguish between the Standard DOM event and the CustomEvent dispatched by LWC Component? Assume we have some 2 simple LWС Components <!--child.html--> <template> <input ...
user70363's user avatar
  • 435
0 votes
1 answer
2k views

Unable to catch dispatched custom event. Instead have to use a Callback function. Why?

I am attempting to add a confirmation dialog (yes/no) for a predefined action on a LWC which does archiving. Basically need to show a popup saying do you confirm and the user selects yes/no to proceed....
kratos's user avatar
  • 551
4 votes
1 answer
9k views

How to check the CustomEvent detail in a Jest test for an LWC?

I'm on my first day of writing Jest tests for one of our LWCs, and that component fires an event with some dates included as the event detail: @api get selectedDates() { return this....
Keith C's user avatar
  • 137k
1 vote
0 answers
268 views

LWC: Any idea if Custom Events will be filtered in the future releases?

I am trying to implement GTM(google tag manager) with a community following this article. The problem I am experiencing is that GTM cannot see the lightning web components that were loaded in the ...
Arthlete's user avatar
  • 5,039