These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobate How to count (add) letters?

slang75
Registered: Apr 22 2009
Posts: 15

Hi All,
 
I have a monthly form with 30 days on it. A user can enter a letter, L or .5L for lieu time. L is 7.5hrs. How can I get acrobat to add up all the L or .5L for the month? Only the letter L. So if I had 4 L in the 30 days, the totals field(which I have) would say 4?
 
Any ideas?
 
Thanks,
Slang

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You need to loop through the fields and check for the letter 'L'. You will need to consider what other and all combinations of data and case that could be entered and determine how best to identify the 'lieu' time indicator. This will require programing in Acrobat JavaScript if the form was created in Acrobat (not LiveCycle Designer).

George Kaiser

slang75
Registered: Apr 22 2009
Posts: 15
The form was created in Acrobat, and L and/or 0.5L are all I want to count.

SO if I had:

L L 0.5L

the result would be 2.5.