Skip to main content
Participant
May 19, 2016
Answered

Simple calculation

  • May 19, 2016
  • 1 reply
  • 542 views

I want to do a simple calculation. A number field (quantity) multiplied by a specific dollar amount for a total cost.

Is there a Java Script for that?

This topic has been closed for replies.
Correct answer try67

Yes. For example:

event.value = Number(this.getField("Quantity").value) * 5;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 19, 2016

Yes. For example:

event.value = Number(this.getField("Quantity").value) * 5;

Participant
May 19, 2016

That worked, Thanks!