Skip to content

Commit

Permalink
gpcc-copy-label.js: Fixed an issue with copying labels from checkbo…
Browse files Browse the repository at this point in the history
…x selections.
  • Loading branch information
saifsultanc authored and claygriffiths committed Oct 10, 2023
1 parent 3b23786 commit b710306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gp-copy-cat/gpcc-copy-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gform.addFilter( 'gppc_copied_value', function( value, $elem, data ) {
} else if( $source.is( '.gfield_radio' ) ) {
value = $( '.gfield-choice-input:checked + label' ).text();
} else if ( $source.is( '.gfield_checkbox') ) {
$inputs= $source.find( 'input:checked' );
$inputs = $source.find( 'input:checked' );
var checkedLabels = [];
$inputs.each( function () {
var label = $(this).next('label').text();
Expand Down

0 comments on commit b710306

Please sign in to comment.