DTM: Rule condition works by CSS selector, but doesn't grab values needed through multiple parentElements | Community
Skip to main content
February 7, 2020
Question

DTM: Rule condition works by CSS selector, but doesn't grab values needed through multiple parentElements

  • February 7, 2020
  • 1 reply
  • 4097 views

I have a CSS selector applied directly to an element (span.sw-icon.lfo-bookmark) that's firing an event. I need to get some values that are 4 parentElements up. When I console.log more than 2 parentElements, I get a 'null' message [in the screenshot, console.log works successfully up until the div with .bookmark-btn]. The site is done in Angular which I think might be the issue. I tried setting an evar, but didn't get anywhere with it. 

 

Any idea where i'm going wrong?

 

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

1 reply

jantzen_b
Adobe Employee
Adobe Employee
March 19, 2020
Is there a way we can access the page? Also screen shots of the rule and your code would be helpful.