Adobe Acrobat Form - button, text box and tick value math

Hello, I need help with these:

I have a button, text field, and the box.

I want the button to increase the value of text by 8 every time on it, but only up to 44. So if his 37-44, whenever you click the button, it will change to 44, not more.

The checkbox when checked, increases the value of text by 2 (one-timer before form reset, should not interfere with the manual rewrite future box or button clicks).

If the checkbox is not possible, at least the 0-44 button is important. So far, I have:

var oFld = this.getField ("Spell");

If (IsNaN (oFld.value))

oFld.value = 0;

on the other

oFld.value += 8;

Thank you!

Just add at the end of your code:

If (oFld.value > 44) oFld.value = 44;

Tags: Acrobat

Similar Questions

Maybe you are looking for