Skip to main content
April 26, 2016
Question

combine information in separate text boxes and have that info add up and display in a different text box

  • April 26, 2016
  • 1 reply
  • 851 views

i have several text boxes that has information in them and I would like to add that information up and have it displayed in a different text box.  example: Text box 1: 6 baseballs, 4 bats, 3 gloves, Text box 2:  4 baseballs, 2 bats,4 gloves; Text box 3:  2 baseballs, 1 bat, 2 gloves.  Text box 4 would then read: 12 baseballs, 7 bats, 9 gloves.  Is there a script that i could have this done in adobe acrobat pro?  Thank you in advance for your help.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 26, 2016

This can be done with a script, yes, but it's not a simple task. You would need to split the strings then search them for matching terms. Then you would need to collect all of the results and create a new string for the total field.

It would be much easier if there was a separate field for each item...

April 27, 2016

try67, I am unable to separate the fields, the format of the document has to remain the same.  That is why I was wanting to know if a script would be able to perform such a task

try67
Community Expert
Community Expert
April 27, 2016

OK, then see the first couple of sentences in my previous reply.