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

Multiplication & Addition

Community Beginner ,
May 29, 2024 May 29, 2024

Copy link to clipboard

Copied

Hello, Everyone! I'm still learning on how to prepare a form in Acrobat. I would like to ask your help on how to get the total multiplication of the Text Field 644 and Text Field 645 and adding the total sum of the execution score in one Text Field. 

See image for reference:

Thank you!

Screenshot 2024-05-30 at 1.35.14 AM.png

TOPICS
Acrobat SDK and JavaScript , Mac

Views

81

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 , May 31, 2024 May 31, 2024

As custom calculation script of "Text Field 646" use this:

var f644 = Number(this.getField("Text Field 644").valueAsString);
var f645 = Number(this.getField("Text Field 645").valueAsString);
var total = 0;
for( var i=1; i<=7; i++){
var fields = Number(this.getField("3."+i).valueAsString);
total += fields;}

event.value = (f644*f645)+total;

Votes

Translate

Translate
Community Expert ,
May 31, 2024 May 31, 2024

Copy link to clipboard

Copied

As custom calculation script of "Text Field 646" use this:

var f644 = Number(this.getField("Text Field 644").valueAsString);
var f645 = Number(this.getField("Text Field 645").valueAsString);
var total = 0;
for( var i=1; i<=7; i++){
var fields = Number(this.getField("3."+i).valueAsString);
total += fields;}

event.value = (f644*f645)+total;

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 Beginner ,
Jun 14, 2024 Jun 14, 2024

Copy link to clipboard

Copied

LATEST

Hey, Nesa. This works on my end. Thank you!

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