Triggering Rules with a CustomEvent - on window | Community
Skip to main content
New Participant
May 26, 2022
Solved

Triggering Rules with a CustomEvent - on window

  • May 26, 2022
  • 1 reply
  • 936 views

Based, on this post, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/how-to-trigger-custom-event-in-adobe-launch-rules/m-p/289538/highlight/true#M1552 

 

can I trigger the window on the custom event type? Does listening on window work now in Adobe Launch?  Do you have to dispatch the event from window to body or document ?

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

Yes, listening for Custom Events on window works in Adobe Launch. This assumes that you're using the native Custom Events (reference: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent).

There's a short guide on using Custom Events in Adobe Launch at https://jimalytics.com/adobe-launch-guides/adobe-launch-rule-events-guide/#Other_Events (search for the "Custom Event" header in that web page).

1 reply

yuhuisg
yuhuisgAccepted solution
New Participant
May 28, 2022

Yes, listening for Custom Events on window works in Adobe Launch. This assumes that you're using the native Custom Events (reference: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent).

There's a short guide on using Custom Events in Adobe Launch at https://jimalytics.com/adobe-launch-guides/adobe-launch-rule-events-guide/#Other_Events (search for the "Custom Event" header in that web page).