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

I'm trying to create a form in Acrobat 9 Pro...

Community Beginner ,
Apr 01, 2016 Apr 01, 2016

where they enter data in 3 fields and it calculates an answer and displays it in Field4. So... the calculation would be Field1 x Field2 x Field3 / 100 but I don't know what the javascript formula should look like. Can someone help me out please? Thanks in advance!

TOPICS
Acrobat SDK and JavaScript
400
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

correct answers 1 Correct answer

LEGEND , Apr 01, 2016 Apr 01, 2016

If you use the simplified field notation option, you can enter the calculation almost exactly like you just did:

Field1 * Field2 * Field3 / 100

But if the field names include certain characters such as spaces and punctuation, each such character would have to be escaped by a backslash character.

The JavaScript is more flexible since you can do things like suppress the output if one or more of the input fields are blank and do rounding.

Translate
LEGEND ,
Apr 01, 2016 Apr 01, 2016

If you use the simplified field notation option, you can enter the calculation almost exactly like you just did:

Field1 * Field2 * Field3 / 100

But if the field names include certain characters such as spaces and punctuation, each such character would have to be escaped by a backslash character.

The JavaScript is more flexible since you can do things like suppress the output if one or more of the input fields are blank and do rounding.

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 Beginner ,
Apr 01, 2016 Apr 01, 2016
LATEST

Thanks so much! I was using x instead of * ... silly me!

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