Expand my Community achievements bar.

Adobe Summit 2025: AEP & RTCDP Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Get JS var From Markup

Avatar

Level 4

Hi, Let's say I'm trying to pass a var that's in the markup like so:

, into a data element? Thanks, Leo S.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Leo,

I'm not seeing how the var is in the markup. Can you try attaching a screenshot by using the picture widget inside the editor? You should be able to pull just about anything from the page into a data element given the correct JavaScript.

Thanks,
Jantzen

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi Leo,

I'm not seeing how the var is in the markup. Can you try attaching a screenshot by using the picture widget inside the editor? You should be able to pull just about anything from the page into a data element given the correct JavaScript.

Thanks,
Jantzen