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

Adding a field that calculates total radio button answers

jahontad
Level 1
Level 1

Hi everyone,

I'm relatively new to LiveCycle, so bear with me.  I'm using LiveCycle Designer ES2 version 9.

I have created a form that will be used to perform a quality assurance review of one of our programs.  There are 32 standards that must be met in order for the program to be considered compliant.  Each standard uses a radio button to indicate C (for compliant) or NC (for Noncompliant).  What I'd like to do is create two fields; one will calculate the total number of radio buttons indicating C, and another field that will calculate the total number of radio buttons indicating NC.

I'm sure there is a way to do this, but I can't quite figure it out.  Any help would be greatly appreciated.

-John

2 Replies
Magus069
Level 10
Level 10

Hi there,

If you have a specific number of radio buttons to count, then you can just verify each of them.

Within the calculate event of a numeric field, you can count how many C and NC you have by verifying them one by one.

Create a variable for C and a variable for NC and each time you have C value, just add 1 to the variable C and same for NC.

When all radio buttons have been verified, just set the numeric field's value to the variable that you have been incrementing the value for.

Hope this will lead you the right way.

jahontad
Level 1
Level 1

Thank you, Magnus069,

It took a few minutes to get the variables lined up properly, but it worked!

Thank you!

-John