I have a group of 6 radio buttons(PerDiemRates) - Their values are set as 1-6 in the binding tab of the group.
Each value is associated with a dollar amount. (46.00, 51.00, 56.00, 61.00, 66.00 and 71.00)
I then have three check boxes. (Breakfast, Lunch & Dinner)
I need the value of a numeric field (one for each checkbox) to populate with a value depending on the radio button selectoni.
Example:
Radio Button for $46.00 is selected
Then Breakfast checkbox is selected
Value = $7.00
Else if radio button $51.00 is selected
Then Breakfast check box is selcted
Value = $8.00
and so on for the other amounts as well as the lunch and dinner check boxes.
I have tried putting in script on the Click event, change event, mouse up event as well as calculation in the numeric field.
I have scoured this site and google for two days and the most I can get is for the numberic field to show "$0.00"
I'm not comprehending what I am reading in the resources online (obviously).
I can email you my document (I haven't "prettied" up the last two pages) so you can see that I'm not just asking someone to do this for me. I've got a functioning form but this last bit will make it fool proof for the user.
I need a really dumbed down assitance.
Please help! I've spent a lot of time on this voucher and I'm proud of what I have been able to accomplish. (Espcially with the help of Niall's website and responses)!
Signed ~
Flusterd, Frazzled, Sad
Adobe 8 PRo - LiveCycle Designer 8 - Windows
1) Writing conditional logic for a calculation
2) Acquiring and using Radio buttons on a LiveCycle form.
Which part is the bit you're having difficulty with?
Have you read this article:Conditional Execution
Also, search this site for "Conditional Calculation".
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script