Hi - I'm totally green on writing scripts in adobe, but I've been looking and haven't found a way to do this yet.
I have a form where my end users check boxes to indicate if they had a reimbursable meal for that mealtime. So there's breakfast, lunch, and dinner checkboxes for 5 different days.
I need to set up a calculation that will only return a value if the box is checked.
For example, if the checkbox for BreakfastDay1 is checked, I need my Breakfast1Total field to return the value of 25% times the value in the field GSA Rate ( GSARate x .25).
If BreakfastDay1 is not checked, the value remains at 0 or empty. Note that GSA rate is a field the user fills in - it is not a static value.
I have no clue how to do if...then statements in Adobe or javascript, but if someone could throw me in the right direction, I might be able to muddle through.
Thanks in advance.
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/
Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.