Skip to main content
jblakeney3
Participant
May 9, 2017
Question

Subtraction

  • May 9, 2017
  • 1 reply
  • 251 views

I have a form that has two financial fields and I need to subtract one from the other.  How do I do that?

This topic has been closed for replies.

1 reply

Inspiring
May 9, 2017

In order to do that, you need to know the name of both fields.

Then go to the third field where you want to have the calculated value and add as a calculation:

event.value = this.getField("Field 1").value - this.getField("Field 2").value;

Make sure to replace "Field 1" and "Field 2" in the code above with the names of the fields in your document. You do still need the quotation marks around the names!