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

field calculation

Explorer ,
Mar 03, 2019 Mar 03, 2019

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
1.9K
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

correct answers 1 Correct answer

Community Expert , Mar 03, 2019 Mar 03, 2019

You need to place it as the custom calculation script.

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

Change this:

event.("Balance.0").value

To:

event.value

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

Hi,

Did not worked...

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

Regards,

Jeff P.

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

You need to place it as the custom calculation script.

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

thanks Now it is working.

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