Gravity Forms checkbox programmatic selection not updating total price calculation

I’m working with a WordPress Gravity Forms setup where I need to automatically check a checkbox when a user makes a specific selection. The checkbox gets checked correctly using my JavaScript code, but the form’s total price calculation doesn’t update to reflect this change.

Here’s my current approach:

jQuery(document).ready(function(){
    gform.addAction('gform_input_change', function(element, form_id, field_id, price_total) {
        if(form_id == 15){
            console.log(field_id);
            if(field_id == '2.0'){
                jQuery('input[name="input_28.2"]').prop('checked', true);
            }
        }
    }, 10);
});

The checkbox selection works fine, but the pricing doesn’t recalculate automatically. I suspect I need to trigger some kind of update event after programmatically checking the box. Has anyone encountered this issue before? What’s the proper way to make Gravity Forms recalculate the total when checkboxes are modified through JavaScript?

Try triggering the change event manually after setting the checkbox. Something like jQuery('input[name="input_28.2"]').prop('checked', true).trigger('change'); should force Gravity Forms to recalculate the pricing. Works for me most of the time.