Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Get JS var From Markup

LeoS_Taco
Level 4
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
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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