Skip to main content
Participant
June 25, 2021
Question

Add a counter button

  • June 25, 2021
  • 1 reply
  • 2013 views

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

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
June 26, 2021

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 -