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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Gianluca
Community profile Gianluca Level 1
Job title here
Location here
2 BADGES
Level 1

Level 1

Learn more
Joined the community 19-11-2020 9:59:53 AM
Online
Top badges earned by Gianluca
Customize the badges you want to showcase on your profile
Re: Data Element Works only with return Statement
Avatar
Give Back
Level 1
Gianluca
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile
Gianluca
- Adobe Experience Platform Data Collection
Hi yuhuisg, exactly, I've initially defined the variable as you shown in the screeshoot, but I have no value for that. Instead declaring the same variable but with custom code and the return statement, it works always well.

Views

237

Likes

0

Replies

0
Data Element Works only with return Statement
Avatar
Give Back
Level 1
Gianluca
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile
Gianluca
- Adobe Experience Platform Data Collection
Hi all,in Adobe Launch I have defined a data element that should be set with a javascript variable on source page of the website.When I call on browser console _satellite.getVar('MY VAR') it returns null, even if the javascript variable is defined and populated.After several tests it seems that I can retrieve my data element value only defining it as a custom code type with a return statement like this: if(MY JAVASCRIPT VARIABLE) return MY JAVASCRIPT VARIABLE;elsereturn ""May someone help me und...

Views

324

Likes

0

Replies

4