Copy link to clipboard
Copied
How can I make a check mark equal a number in a different field once its clicked?
As 'Mouse UP' action of that checkbox, add this script:
if(event.target.value != "Off")this.getField("Text1").value = 500;
Copy link to clipboard
Copied
This is a very vague explanation, can you please elaborate?
Copy link to clipboard
Copied
How can I make text1 equal 500 when the check mark is checked?
Copy link to clipboard
Copied
As 'Mouse UP' action of that checkbox, add this script:
if(event.target.value != "Off")this.getField("Text1").value = 500;
Copy link to clipboard
Copied
It worked. Thank you!!
Copy link to clipboard
Copied
How can I make it so it subtracts the value from the field if the checkmark is unselected?
Copy link to clipboard
Copied
Update your code to this:
if(event.target.value != "Off")this.getField("Text1").value = 500;
else
this.getField("Text1").value = "";