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

Require 2 of 3 radio buttons to have same value for use in calculation


Level 4

Background info:

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:

  1. "Claimed" with a value of 10;           This means the person is reimbursed this amount.
  2. "Provided" with a value of 0; and      This means the meal was provided at the event, and the person is not reimbursed.
  3. "N/A" also with a value of 0.            This means the meal is not eligible to be reimbursed. 

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.

1 Reply


Level 10


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.