Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Rules firing inconsistently

Avatar

Employee

It seems like my rules aren't firing consistently when I expect them to. What can I check to resolve this?

1 Accepted Solution

Avatar

Correct answer by
Employee

There are two possible reasons for a rule to fire inconsistently:

  1. Does the event action incite a link to load? If so, the rule may not have enough time to fire before the new page loads. You need to check the box within the rule identifier indicating Delay link activation. This keeps the activated link from loading until the rule has fired.
  2. If the event does not incite a new page load, then there may be an issue with bubbling. If the event action can occur on a child / parent item, ensure the button indicating Allow events on child elements to bubble is checked. This ensures that the rule fires whether or not the user interacts with the child / parent element.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

There are two possible reasons for a rule to fire inconsistently:

  1. Does the event action incite a link to load? If so, the rule may not have enough time to fire before the new page loads. You need to check the box within the rule identifier indicating Delay link activation. This keeps the activated link from loading until the rule has fired.
  2. If the event does not incite a new page load, then there may be an issue with bubbling. If the event action can occur on a child / parent item, ensure the button indicating Allow events on child elements to bubble is checked. This ensures that the rule fires whether or not the user interacts with the child / parent element.