Adobe Launch: What is the use of execute globally checkbox in custom code under actions ? | Community
Skip to main content
Level 2
July 18, 2019
Solved

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

  • July 18, 2019
  • 2 replies
  • 3063 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

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.

2 replies

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
July 26, 2019

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.

Level 2
July 29, 2019

Thank you !!! It helped a lot.