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

Community Beginner ,
May 29, 2024 May 29, 2024

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!

TOPICS
Acrobat SDK and JavaScript , Mac

Views

124

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 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;``````

2 Replies 2
Community Expert ,
May 31, 2024 May 31, 2024

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;``````

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

Copied

LATEST

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