This topic is locked
[SOLVED]

 How do I make a discount JavaScript

9/13/2020 3:15:41 PM
PHPRunner General questions
A
alghanim author

I have a field called Duration

The total number is 60

Upon addition, 60 will be deducted from the total number

Example when adding 10 is remaining 50

Example when adding 20 is remaining 40

The field that shows the result is rest

How do I do the code JavaScript
thank you in advance

Myr0n 9/13/2020

Treat all these as variables, to get the values from the fields that you are showing on your page you can use getValue() and to set the value in a field you can use setValue()

A
alghanim author 9/14/2020

thank you