Skip to content

Commit 0522c2e

Browse files
committed
gpppw-capture-count-as-field-value.js: Fixed an issue with snippet not working with Conditional Logic in play.
1 parent 7490db2 commit 0522c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp-pay-per-word/gpppw-capture-count-as-field-value.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ gform.addFilter( 'gpppw_word_count', function( wordCount ) {
1313
var $field = $( '#input_GFFORMID_2' );
1414

1515
// Only update if value is actually different
16-
if ( $field.val() != wordCount ) {
17-
$field.val( wordCount).change();
16+
if ( $field.val() != wordCount ) {
17+
$field.val( wordCount ).change();
1818
}
1919

2020
return wordCount;

0 commit comments

Comments
 (0)