Skip to main content
Participant
May 17, 2018
Question

Question about calculation script

  • May 17, 2018
  • 1 reply
  • 271 views

I adobe form field I want to calculate

numeric field X = sqrt (numeric field A *numeric field B /3600)

all numeric fields are text fields.

How do I enter the script in calculation script ?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 17, 2018

Enter this code as the custom calculation script of field "X":

var a = Number(this.getField("A").valueAsString);

var b = Number(this.getField("B").valueAsString);

event.value = Math.sqrt(a*b/3600);

nkhguptaAuthor
Participant
May 17, 2018

It worked. Thanks

Sent from my iPhone