Skip to content

Commit 74a02ba

Browse files
authored
gw-double-confirmation-fields.php: Fixed an issue where the snippet would try to match for values of hidden fields.
1 parent 1969d04 commit 74a02ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-double-confirmation-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function gfcf_validation( $validation_result ) {
4040
$confirm_error = true;
4141

4242
foreach ( $form['fields'] as &$field ) {
43-
if ( ! in_array( $field['id'], $confirm_fields ) ) {
43+
if ( ! in_array( $field['id'], $confirm_fields ) || RGFormsModel::is_field_hidden( $form, $confirm_field, array() ) ) {
4444
continue;
4545
}
4646

0 commit comments

Comments
 (0)