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

calculation with a normal field and a Dropdown (LOCKED)

New Here ,
May 30, 2016 May 30, 2016

Hi,

I want to create a Field that give me the amount of product needed according to the length of the site and of the box (selectable in a list)

I've try that :

var a = Number(this.getField("SiteSize").value);

var b = Number(this.getField("DropdownBoxSize").value);

if (b==0) event.value = "";

else event.value = Math.floor(a/b);

but it's not working.


Any idea ?

TOPICS
Acrobat SDK and JavaScript
214
Translate
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 30, 2016 May 30, 2016
LATEST

Please don't double-post the same question.

Translate
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