How to use Radio Button Group for calculation

Use radio button group values in ChronoForms calculations.

Overview

The issue is that standard calculation forms may not automatically read the selected value from a radio button group.
To calculate the total, use a custom JavaScript function to retrieve the selected radio button value from each group and then sum those values in your form's calculation logic.

Answered
ChronoForms v6
om omidhz 24 Nov, 2018
In the FAQ Creating a calculation form in Chronoforms6 I know how to create a calculator that uses the values in a field for calculation. How can I use the value from Radio button groups to do the same? For example, if I have two radio button groups (group1 and group2) and each has two options, and the value for each option is a number, I need to display the total of the values from both groups.

Thanks
he healyhatman 24 Nov, 2018
Answer
jQuery('input[name="radio_field_name"]:checked').val() 
This topic is locked and no more replies can be posted.