0
Add a counter button
New Here
,
/t5/acrobat-discussions/add-a-counter-button/td-p/12139293
Jun 25, 2021
Jun 25, 2021
Copy link to clipboard
Copied
Hello--
I am trying to build a form with fields that will update based on clicks of other buttons.
Layout: is a 3 column table. The first column just has text to describe the row, the second column is a "+ or -" button. and the last column is the total count of button clicks
I want to be able to press the + or - button and make the last column change each time by 1 so as when we are done with the PDF it has the count of the buttons clicked
Make sense?
Thanks
TOPICS
Create PDFs
,
How to
,
JavaScript
,
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/add-a-counter-button/m-p/12139681#M318579
Jun 25, 2021
Jun 25, 2021
Copy link to clipboard
Copied
In a button as Mouse UP event you can use this:
this.getField("Total clicks").value +=1;
Change "Total clicks" to your actual field name and for minus button change + to -
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

