Simple matter of Adobe Pro DC.

Hi all

I am new to Adobe Acrobat DC, and I'm sure it's something simple, but I have very little JavaScript 'know-how '.  I'm working on something for work and I'm looking to use a kind of conditional formula.  Here is a brief description of what I'm trying to do:

I have a form and I want to summarize a series of text boxes in all, but only if the first text box is not empty.  (i.e.  Box 1 with the date, so now I want text text boxes 2-10 to summarize in box 11)

I work mainly with Excel, and as I said I'm a little new to scripting so any help would be greatly appreciated.

Also, if anyone has any suggestions for resources, I could use to learn more about JavaScript and its uses in Adobe Acrobat DC.

Thank you all,

You can use something like this than the calculation script of '11 text box: custom

if (this.getField("Text Box 1").valueAsString=="") event.value = "";
else {
    var total = 0;
    for (var i=2; i<=10; i++)
          total+=Number(this.getField("Text Box "+i).value);
    event.value = total;
}

Tags: Acrobat

Similar Questions

Maybe you are looking for