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

ACROBAT INTERACTIVE PDF MULTIPLE CALCULATION OPTIONS

New Here ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

What I would like to do, is calculate from 3 fields.

Field one x 4 equals field 3 (in simplified field notation, I’ve put Field one name * 4)

and

Field two x 2 equals field 3 (in simplified field notation, I’ve put Field two name * 2)

I can set up the calculation in field 3 to say either of those options singly

BUT

I’d like to say both.

Does anyone know if you can ask the calculations field to do 2 different calculations to 2 different fields?

Screen Shot 2022-07-21 at 1.10.44 pm.png

TOPICS
Edit and convert PDFs , How to , PDF forms

Views

609

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

correct answers 1 Correct answer

Community Expert , Jul 20, 2022 Jul 20, 2022

You can use this as custom calculation script of "P1.3" field:

var one = Number(this.getField("P1ONE").value)*4;
var two = Number(this.getField("P1TWO").value)*2;
if(one != 0)event.value = one;
else if(two != 0)event.value = two;
else
event.value = "";

Votes

Translate

Translate
Community Expert ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

Use a script for this.

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
New Here ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

I apologise for not knowing what I should be writing??? Can you give me an idea? Is it just in the calculation section?

 

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
Community Expert ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

In field 3 (P1.3) you want to show result from field1*4 and field2*2 combined or two different results?

If combined you can still use SFN for it just add plus sign: P1ONE*4+P1TWO*2.

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
New Here ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

Hi. 2 different results. Some people will fill in column one, some column 2 but not both. Thanks 🙂

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
Community Expert ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

You can use this as custom calculation script of "P1.3" field:

var one = Number(this.getField("P1ONE").value)*4;
var two = Number(this.getField("P1TWO").value)*2;
if(one != 0)event.value = one;
else if(two != 0)event.value = two;
else
event.value = "";

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
New Here ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

LATEST

Yay! Thank you very very much Nesa, I appreciate your help and have learned a lot today 🙂

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