Participant
April 8, 2022
Question
calculate result triggered by selected fields
- April 8, 2022
- 2 replies
- 1060 views
Hi, I need to calculate a result in PDF form. I have 5 fields: kg, lbs, result, quantity and ml.
The formula for result is event.value = Number(this.getField("kg").valueAsString) * 1.8;
> for this formula the user could enter a value in either "kg" or "lbs"
If the user enters the value in "kg", I want the "lbs" to automatically populate and vice versa.
calculation is "lbs = kg * 2.2" or "kg = lbs / 2.2"
The formula for quantity is event.value = Number(this.getField("result").valueAsString) / 50;
The formula for ml is event.value = Number(this.getField("result").valueAsString) / 5;
How can I make this ?