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

Simple calculations

New Here ,
Jul 23, 2018 Jul 23, 2018

Hello everyone

I have 3 boxes

t1

d1

g1

g1 is t1+d1

d1 is g1 - t1

I want these fields to calculate automatically when I enter values in them,

Here are the scenarios that the calculation codes need to handle automatically :

t1 Value is always available to me

Sometimes I only have t1 and d1 is not present which in that case calculation should be g1=t1 (d1 should show 0 in this case)

Sometimes I only have g1 and d1 is not present which in that case calculation should be g1-t1 (to get the Value of d1)

Also I don't want these boxes to show anything if I don't enter anything in them (not even zero)

Thank you for all your helpCapture2.JPG

try67​

TOPICS
PDF forms
447
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
1 ACCEPTED SOLUTION
Community Expert ,
Jul 24, 2018 Jul 24, 2018
LATEST

Read this:

https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

and This one

https://acrobatusers.com/tutorials/conditional-execution

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

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 ,
Jul 24, 2018 Jul 24, 2018
LATEST

Read this:

https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

and This one

https://acrobatusers.com/tutorials/conditional-execution

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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