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

button script to count number of times button is clicked

cbradshaw
Registered: May 3 2011
Posts: 1

Hello, new user here and livecycle noob.
 
I'm hoping someone can help me with a script for a button
 
I need the button to count how many times it's been clicked and display the number.
 
thanks for the help

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

this can be done pretty simple.
You need a numeric field and a button.

In the click:Event of the button add the following FormCalc script.
NumericField1 = NumericField1 + 1
Everytime the button is clicked the script increases the value of the numeric field by 1.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs