Disable Notification Conditional Logic

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?

Hi Marc. It’s possible. I recommend enabling logging and testing the form to see the order in which things are happening. You can enable logging by going to Forms > Settings > Logging. Select: On, then [Save Settings]. By default this will enable all logging on your site. Documentation for Enabling Logging: Logging and Debugging - Gravity Forms Documentation

After enabling logging, please test the form. The go back to Forms > Settings > Logging > Webhooks and see what was logged. Let us know what you find out.