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
BedrockMission!

Learn More

View all

Sign in to view all badges

New to Livecycle: Need to create simple sum script

Avatar

08-10-2008

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"));*/

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

09-10-2008

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



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