Copy link to clipboard
Copied
Copy link to clipboard
Copied
// Get first field value
var v1 = getField("Text1").value;
// Get second field value
var v2 = getField("Text2").value;
// Set this field value equal to the difference
event.value = v1 - v2;
Copy link to clipboard
Copied
I guess I'm missing something. I can't get this to work. Here is the script that I am using.
v1 = getField("Subtotal").value;
v2 = getField("TotalDiscount").value;
TotalDue.value = v1 - v2;
Any help would be appreciated.
Jack
Copy link to clipboard
Copied
Use this:
event.value = v1 - v2;
Copy link to clipboard
Copied
I used George's suggestions with Bernd's alteration, and it worked great for me. Thanks!
Copy link to clipboard
Copied
Text1 - Text2
Copy link to clipboard
Copied
I was unable to subtract using the guidance you provided. Do I need to add an equal sign or something?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied