How to get POST values of checkbox list from Dialog box

Need to get values of checkbox list pass in html template to access inside (code here is basic structure) primary_action values.

var d = new frappe.ui.Dialog({
    'fields': [
                           {'fieldname': 'ht', 'fieldtype': 'HTML'},
    {'fieldname': 'other_data', 'fieldtype': 'Check','label':['Other Data Name']},
    {'fieldname': 'check_data', 'fieldtype': 'HTML'},
    ],
                       
    primary_action: function(){
    var values = d.get_values();
       console.log(values);//I only get "other_data" value but not getting "check_data" data here
      }
    });

    var html_data= '<div><p><input type="checkbox" id="data1" values="data1" name="check_data[]"> data1</p></div>
    <div><p><input type="checkbox" id="data2" values="data2" name="check_data[]"> data2</p></div>
    <div><p><input type="checkbox" id="data3" values="data3" name="check_data[]"> data3</p></div>;
    d.fields_dict.check_data.$wrapper.html(html_data);
    d.show();

Above code shows html template but it is not passing checkbox values in HTML fieldtype.

can someone help me please?