Skip to main content
Known Participant
July 15, 2024
Answered

Script for button

  • July 15, 2024
  • 1 reply
  • 486 views

I have two buttons + and -, I want each to add or subtract 1 from "Text1" field, how can I do this?

This topic has been closed for replies.
Correct answer Nesa Nurani

As 'Mouse Up' action of + button, use this:
this.getField("Text1").value += 1;
for - button change += to -=

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
July 15, 2024

As 'Mouse Up' action of + button, use this:
this.getField("Text1").value += 1;
for - button change += to -=