Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

New to Livecycle: Need to create simple sum script

Avatar

Not applicable
I have a form which has 4 fields ("rent", "deposit", "tax", "cleaning")that need to be calculated into a total and then populated into a "Total" field. I had originally created the form in Acrobat and had no problem with the total calculation, but when I moved it over to Livecycle it will no longer work.

Can someone tell me the correct format for creating a javascript or formcalc to complete this function?



Currently the script line is showing as



/*AFSimple_Calculate("SUM", new Array("rent", "deposit", "tax", "cleaning"));*/
1 Reply

Avatar

Level 10
If you use Javascript then the command would look like this:



Total.rawValue = rent.rawValue + deposit.rawValue + tax.rawValue + cleaning.rawValue;