Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Add a counter button

New Here ,
Jun 25, 2021 Jun 25, 2021

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
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2021 Jun 25, 2021
LATEST

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 -

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines