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

field calculation

Explorer ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

Hello,

I do have a form and I would like to do a simple calculation of a fields... here is what I have coded that does not work.

event.("Balance.0").value = this.getField("Credited.0").value - this.getField("Debited.0").value - this.getField("AmtDistributed.0").value;

Balance.0 is a read only field, when I enter number in Credited.0, Debite4d.0 or AmtDistribute.0 still Balance.0 stays blank.

What I am doing wrong?

Regards,

Jeff P.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

1.4K

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 , Mar 03, 2019 Mar 03, 2019

You need to place it as the custom calculation script.

Votes

Translate

Translate
Community Expert ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

Change this:

event.("Balance.0").value

To:

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
Explorer ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

Hi,

Did not worked...

I have the formula under the Action tab of Balance Field.

Regards,

Jeff P.

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 ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

You need to place it as the custom calculation script.

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
Explorer ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

LATEST

thanks Now it is working.

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