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

Display a numeric field SUM as a different value

lmontee
Registered: Jul 21 2011
Posts: 9

Hello Everyone,
I'm real new trying to use LiveCycle Forms. What I'm trying to do is the following:
I've made 18 dropdown lists that have various selections available. Each selection has a numeric value bound to it. After all 18 lists have been selected,
a sum of those 18 selections is displayed in a numeric field. I would like to display that SUM as a code, for example, the sum is = 9262 and I would like to have "00" displayed, either in that numeric field, or a different textfield.
 
Thanks in advance,

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Have you been able to sum those fields?

Do you want the field in which the sum is now being displayed to display your special code?


George Kaiser

lmontee
Registered: Jul 21 2011
Posts: 9
Howdy George,
Thanks for the quick responce.
Yes, the numericfield is totaling the sum for the selections for the 18 dropdowns. It would be preferable for me to display a different code in that numericfield. What I'm attempting to do is have an interactive PDF for our company's part number generators. We have very complex configurations for our end product. These 18 selections determine only 2 alpha numeric digits of a 30 digit part number. The rest of the digits in the part number can be determined from individual dropdowns.

Thanks again in advance,
Larry Montee
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You can place the sum into a variable and then use the 'if' or 'switch' statement to make the decision as to which code value to place in the field.

George Kaiser

lmontee
Registered: Jul 21 2011
Posts: 9
O.K. George,
I was looking looking at comments here about if t anything to and switch all day yesterday, but I wasn't able to get anything to work. Once again, I know very little about writing code. Up to this point I've been finding examples of what I'm trying to do and just modifying the code. The numericfield in question is named Style_Total. What event type would the switch or if statement be on?
An example would be very helpful.

Thanks again for your help.
Larry
lmontee
Registered: Jul 21 2011
Posts: 9
O.K. George,
I was looking looking at comments here about if t anything to and switch all day yesterday, but I wasn't able to get anything to work. Once again, I know very little about writing code. Up to this point I've been finding examples of what I'm trying to do and just modifying the code. The numericfield in question is named Style_Total. What event type would the switch or if statement be on?
An example would be very helpful.

Thanks again for your help.
Larry