We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gw-choice-counter.php
1 parent 9db39a3 commit 2bd6e83Copy full SHA for 2bd6e83
gravity-forms/gw-choice-counter.php
@@ -124,7 +124,7 @@ function output_script() {
124
if ( ! values ) {
125
// If no values provided in the config, just get the number of checkboxes checked.
126
if ( self.isCheckableField( $choiceField ) ) {
127
- count += $choiceField.find( ':checked' ).not(' #choice_' + choiceFieldIds[ i ] + '_select_all').length;
+ count += $choiceField.find( ':checked' ).not(':disabled').not(' #choice_' + choiceFieldIds[ i ] + '_select_all').length;
128
} else {
129
count += $choiceField.find( 'option:selected' ).length;
130
}
0 commit comments