Simple calculation

New Here ,
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

61

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

Simple calculation

New Here ,
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

62

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
May 09, 2019 0
try67 LATEST
Most Valuable Participant ,
May 09, 2019

Copy link to clipboard

Copied

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
Reply
Loading...
May 09, 2019 0