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

Level 1

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

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
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

181

Likes

0

Replies

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

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
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

268

Likes

0

Replies

4