Title is pretty spot on… If the number fields have a comma gform_field_validation fails - if I remove the comma it passes.
Example:
1,100 will not match 1,100
but
1100 will match 1100
Using number fields (as field 47 is based on calculations) and can’t remove comma format. These rules are followed → Using Calculations - Gravity Forms Documentation
filter is as so…
add_filter( 'gform_field_validation_11_47', function ( $result, $value, $form, $field ) {
$master = rgpost( 'input_48' );
if ( $result['is_valid'] && $value !== $master ) {
$result['is_valid'] = false;
$result['message'] = 'Please verify that the totals match.';
}
return $result;
}, 10, 4 );
Any ideas for me to try? I’m at a loss here, thank you.