Skip to main content
Level 4
May 26, 2022 11:09 PM UTC
Solved

Triggering Rules with a CustomEvent - on window

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.
yuhuisg
yuhuisgAccepted solution
Community Advisor
May 28, 2022 2:14 PM UTC

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
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
May 28, 2022 2:14 PM UTC

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).

Translate