Sign in to Community
Sign in to view all badges
I am using LiveCycle Designer ES2.
I have 4 fields - three radio button groups with 3 items each; and one numeric field that calculates the sum of the 3 radio button group values.
Each radio button group has the same 3 items:
The numeric field (Claimable amount) has this JS calculation - parseInt(pfdBreakfast.rawValue) + parseInt(pfdLunch.rawValue) + parseInt(pfdDinner.rawValue);
Is there a workaround to allow 2 radio buttons in the same group to have to the same value? OR Is there a totally different method to obtain the results I need?
Note: I tried putting "1" for the N/A value but, of course, each N/A value was added to the sum. I also tried putting "N" for the N/A value but the numeric field calculation wouldn't work at all.
Thanks for any assistance you can provide.
Here's a couple of ways, if you leave the values as the default, that is 1,2,3,... you could use;
[10,0,0][pfdBreakfast.rawValue - 1]
That is get the business value from an array.
You could also change the binding value of the N/A radio button to "0.0" and let the parseInt that you already have turn it back to 0. The binding values of radio buttons are strings by default.