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

Combine Multiple Numeric Fields into One Field

crumycat
Registered: Jan 18 2010
Posts: 2
Answered

Hi Everyone,

I require some assistance with the following.

Some of our forms require users to enter the numeric values into a pre defined format. To do this, we create an idividual column in microsoft word for each value of the number (e.g. 100 would actually be split across 3 fields).

As I now need to use these values in a calculation (e.g. field1-field2), how can i combine these individual values so that they make the whole numer (e.g. 1 0 0 to 100)?

Thanks in advance.

Daniel

My Product Information:
Acrobat Standard 9.2, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
This type of field is known as a 'Comb' field.

Have you looked at the 'Comb' 'Option' for your numeric fields?

You will have to uncheck all the other 'Options' for the field.

If your field spacing is such that this will not work, you can treat the field values like strings, using the 'valueAsString' property, concatenate the values into a character string for the number and then use the number constrictor to convert the character string number back to a number.

If you have a number of fields that need to be processed like this, I would write a fucntion to perform the task.

George Kaiser