Simple calculation

New Here ,
May 09, 2019 May 09, 2019

Copy link to clipboard

Copied

I want to write a calculation that will take the input from 1ST_FLOOR add 1ST_FLOOR_DEC / 10 to get a number with a decimal and subtract a value the user puts in CL_RD and place it in the box for ToBF.

not sure what I am missing

var num = this.getField ("1ST_FLOOR").value + this.getField ("1ST_FLOOR_DEC").value/10 - this.getField ("CL_RD").value;

this.getField("ToBF") = aNum

TOPICS
Acrobat SDK and JavaScript

Views

67

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 09, 2019 May 09, 2019

Copy link to clipboard

Copied

LATEST

Change the last line to:

event.value = num;

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