I am using gform_disable_notification to disable notifications if certain conditions are met but it doesn’t appear to be working. I am sure my field IDs are correct.
add_filter( 'gform_disable_notification', 'disable_notification_by_field', 10, 4 );
function disable_notification_by_field( $is_disabled, $notification, $form, $entry ) {
$condition_1 = rgar( $entry, '1' ) + 0;
$condition_2 = rgar( $entry, '71' ) + 0;
if ( round($condition_1) + 10 < $condition_2 ) {
return true;
}
return $is_disabled;
}
I am also using gform_notification for routing. Could this be conflicting with gform_disable_notification?