Question about calculation script

New Here ,
May 16, 2018 May 16, 2018

Copy link to clipboard

Copied

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 ?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

68

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
May 16, 2018 May 16, 2018

Copy link to clipboard

Copied

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);

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 17, 2018 May 17, 2018

Copy link to clipboard

Copied

LATEST

It worked. Thanks

Sent from my iPhone

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines