How do I add only the fields whose value is greater than an established amount in a calculation?

Avatar

Avatar

Andrea444

Avatar

Andrea444

Andrea444

03-09-2015

I have a Life Cycle Designer PDF form with fields for user input.  I want to add together ONLY the items that are more than $25. Any assistance would be appreciated.

thank you.

View Entire Topic

Avatar

Avatar

gkaiseril

Avatar

gkaiseril

gkaiseril

04-09-2015

You need to use the commands for conditional code execution. You can use the JavaScript "if" statement or the FormCalc "if" statement. Note that the syntax for the "if" statement have a different syntax.

The "Scripting Reference" under LiveCycle's Help menu bar item has more information about the FormCalc statements.

Since this is custom scripting you need establish the link to the field objects and then use the "value" property to get the user input for the field.