since ‎19-11-2020
‎24-03-2021
Gianluca
Level 1
Re: Data Element Works only with return Statement
Avatar

Gianluca

Gianluca
- Adobe Experience Platform Launch
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

108

Likes

0

Replies

0
Data Element Works only with return Statement
Avatar

Gianluca

Gianluca
- Adobe Experience Platform Launch
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

190

Likes

0

Replies

4