• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

226

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

Copy link to clipboard

Copied

LATEST

Change the last line to:

event.value = num;

Votes

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