Skip to main content
New Participant
April 1, 2016
Answered

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

  • April 1, 2016
  • 2 replies
  • 436 views

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!

This topic has been closed for replies.
Correct answer George_Johnson

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.

2 replies

New Participant
April 1, 2016

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

George_JohnsonCorrect answer
Inspiring
April 1, 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.