Thanks it is working now yet i am facing another issue.
I tried to populate it to 2 different count field from the same checkbox but it is neglecting the other count field.
Trial-1
Configuration
new GW_Choice_Count( array(
‘form_id’ => 1, // The ID of your form.
‘count_field_id’ => 44, // Any Number field on your form in which the number of checked checkboxes should be dynamically populated; you can configure conditional logic based on the value of this field.
‘choice_field_ids’ => array( 40 ), // Any array of Checkbox or Multi-select field IDs which should be counted.
‘values’ => false, // Specify an array of values that should be counted. Values not in this list will not be counted. Defaults to false
which will count all values.
) );
new GW_Choice_Count( array(
‘form_id’ => 1, // The ID of your form.
‘count_field_id’ => 46, 54, // Any Number field on your form in which the number of checked checkboxes should be dynamically populated; you can configure conditional logic based on the value of this field.
‘choice_field_ids’ => array( 45 ), // Any array of Checkbox or Multi-select field IDs which should be counted.
‘values’ => false, // Specify an array of values that should be counted. Values not in this list will not be counted. Defaults to false
which will count all values.
) );
Trial -2
Configuration
new GW_Choice_Count( array(
‘form_id’ => 1, // The ID of your form.
‘count_field_id’ => 44, // Any Number field on your form in which the number of checked checkboxes should be dynamically populated; you can configure conditional logic based on the value of this field.
‘choice_field_ids’ => array( 40 ), // Any array of Checkbox or Multi-select field IDs which should be counted.
‘values’ => false, // Specify an array of values that should be counted. Values not in this list will not be counted. Defaults to false
which will count all values.
) );
new GW_Choice_Count( array(
‘form_id’ => 1, // The ID of your form.
‘count_field_id’ => 46, // Any Number field on your form in which the number of checked checkboxes should be dynamically populated; you can configure conditional logic based on the value of this field.
‘choice_field_ids’ => array( 45 ), // Any array of Checkbox or Multi-select field IDs which should be counted.
‘values’ => false, // Specify an array of values that should be counted. Values not in this list will not be counted. Defaults to false
which will count all values.
) );
new GW_Choice_Count( array(
‘form_id’ => 1, // The ID of your form.
‘count_field_id’ => 54, // Any Number field on your form in which the number of checked checkboxes should be dynamically populated; you can configure conditional logic based on the value of this field.
‘choice_field_ids’ => array( 45 ), // Any array of Checkbox or Multi-select field IDs which should be counted.
‘values’ => false, // Specify an array of values that should be counted. Values not in this list will not be counted. Defaults to false
which will count all values.
) );
for both of the above trials either one count field is working.
Kindly help to rectify the error.