Expand my Community achievements bar.

Attach event to window/document

Avatar

Level 4

12/11/17

Are there any plans to extend the Custom Event portion of Event Type in Rules? I would like to eventually see the ability to add events to things other than elements on the page, particularly the window and/or document.

1 Comment

Avatar

Employee

3/31/18

If you choose "any element" in the Custom Event configuration view, the rule will fire when your custom event is triggered from any element, including document (but not window). Does that suffice for what you need?