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

Calculating a field

Avatar

Not applicable
Hi, this is only my second form using Live Cycle 8.0 and the first where I need a calculated value. So I'm definitely a beginner.



It's very simple; however, I don't understand the help instructions.



I have a field called Hours. I need to multiply that by a rate, $80, and display the result in another field. I guess I could call that field Total.



I looked up Calculations but I am stumped by even the 1st instruction: Select the object to which you want to attach a calculation or script. Which one do I select, Hours or Total?



I'm not sure how to proceed. If you know, please give instructions suitable for a complete moron. Thank you!
1 Reply

Avatar

Not applicable
Linda,

You will want to select your "total" field, and choose the calculate event from the script editor. In the calculate event your will want to put the following javascript:



this.rawValue = hours.rawValue * 80;



Where hours is the hours field on your form (including the path in the hierarchy, if needed). The calculate event will fire as soon as you leave the hours field when filling in the form.