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

Balance at last column

Explorer ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

HI,

I have a pdf fillable form that having very simple calculations i.e total at bottom of the columns but at last column "New Payment" will show figure before entering any amount at Min Payment? there is any other way to code to overcome this issue so that figure will show after user enter the amount at Min Payment?

Basically, I am using Value is the Sum function to add two fields i.e

Min Payment fields + New Payment Fileds just and show balance to total new entered payment and plus previous figure and show at new payment box BUT only show figure when user enter any figure at Min Payment.

This is very urgent any help will be highly appreciated.

Here is the form

Thanks

TOPICS
PDF forms

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
Community Expert ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

As custom calculation script use this:

if (getField("payment2").value != "") {

    event.value = getField("payment2").value + getField("new payment.0").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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

Thanks for your code, this custom code for the first field? I just tired but this will add all amount at the second field?

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

I have posted the code for the field "new payment.1". Why does you change the code?

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

because when I enter this code to third filed this will must be changed to work with second filed? this cannot use for all fields I just change fields name etc.

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

But you use a other code in field "new payment.1".

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

okay if I use the same code for new payment.1 what about next fields? Will other fields need to change the code in terms of fields name? can you please explain what other code I have used on new payment.1?

the main problem with this code this will show amount at all fields without entering any data from top to bottom, If I not change any field name then also this will not works

Capture.PNG

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

For the next field you must use "payment3" and "new payment.1" and so on.

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

I already doing that to change filed name but all fields will show payments just like my snap shot attached?

Capture.PNG

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 ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

LATEST

I have posted following code:

if (getField("payment2").value != "") {

    event.value = getField("payment2").value + getField("new payment.0").value;

}

But you have entered following code:

if (getField("new payment.0").value != "") {

    event.value = getField("payment2").value + getField("new payment.0").value;

}

Why did you change 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
Explorer ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

Actually, this code working but show amount at all fields of New payment?

There are six fields that having the code and when I enter any amount at first or second fields this will show that amount in all fields?

I know there is some thing missing or am I doing wrong?

HERE is form with filled amount

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