Product Field (Single Product) with default quantity set to 1

Is it possible to have the default quantity of the single product field set to 1 instead of 0?

I’ve been looking into using this:

Edit:
Resolved my problem using the dynamically populated fields with the parameter name of default_qty in the quatity field and added the following to the functions file:

  add_filter( 'gform_field_value_default_qty', 'default_qty' );
    function default_qty( $value ) {
       return '1';
    }
2 Likes

The problem now is if the field is hidden by conditional statements the value does not populate when the conditional statement is met but when it collapses again it’ll populate.