Expand my Community achievements bar.

SOLVED

Adobe Launch: What is the use of execute globally checkbox in custom code under actions ?

Avatar

Level 2

Want to get the knowledge for use of execute globally checkbox in custom code under actions. The info link just besides it is not working.

Any help would be highly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

if you check this box, the variables become global meaning they will be available directly on the page.

For example, if your custom code is myVar=1; and the box is unchecked, this variable can't be read when you refer to it either directly from the page or later from other Launch components — execute myVar in the browser console and you will see "the variable is not defined".

With the box checked, you can read and write to it directly from the page — execute myVar in the browser console and you will see "1" returned.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

if you check this box, the variables become global meaning they will be available directly on the page.

For example, if your custom code is myVar=1; and the box is unchecked, this variable can't be read when you refer to it either directly from the page or later from other Launch components — execute myVar in the browser console and you will see "the variable is not defined".

With the box checked, you can read and write to it directly from the page — execute myVar in the browser console and you will see "1" returned.