These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to create a global variable in livecycle designer?

fanchunrong
Registered: Mar 4 2008
Posts: 37

I want to create a global variable to record whether a button is clicked--once it clicked, I want to set the variable value =1 and then use this value some where else. How can I do this? I am using javascript. Thanks!

My Product Information:
LiveCycle Designer, Windows
sconforms
Expert
Registered: Jul 10 2007
Posts: 92
fanchunrong,

You can create form variables by using the "File menu > Form Properties cmd > Variables" panel. These are global within the form. Note that when using JavaScript, you must get/set their value using their "value" property as follows:ButtonPressed.value = 1;

Stefan Cameron obtained his bachelor's degree with Honors in Computer Science at the University of Ottawa and is a Computer Scientist working on Adobe's LiveCycle server products, in particular on LiveCycle Designer ES for the past 5 years.

Muntron
Registered: Dec 8 2008
Posts: 6
Are these variables preserved across sessions? That is if I modify a variable and save the form, can I see the modified variable when I open the form again?