It is not possible to get those Labels in the $_POST data.
Generic Fields are not persisting, they are present only in the Form.
Those fields are stored only in the Post Table in the Database, against the Form itself (which is basically a Post), not against the Post that you edit, or Create with this CRED Form.
This means you will find the IDof your CRED Form in the Post Type "cred-form" in the database, and the Generic Field is in the Post Content column, just as you see it in the CRED Form.
To find the single values, you can var_dump() your $_POST values on a form submit, like this below:
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($post_id, $form_data)
{
// if a specific form
$post_data = $_POST;
$field = $_POST ["custom_boxes"];
var_dump($post_data);
var_dump($field);
die;
}
This above will (on a form with a Generic Checkboxes Field with name "custom_boxes"), submit the form, abort, and print all values of $_POST and it's field "custom_boxes".
In the $_POST you will have this array:
array (size=12)
'custom_boxes' =>
array (size=1)
0 => string 'valueone' (length=8)
'wpcf-email' => string '' (length=0)
'new_tax_text_category' => string '' (length=0)
'new_tax_select_category' => string '-1' (length=2)
'post_tag' => string '' (length=0)
'tmp_post_tag' => string '' (length=0)
'form_submit_1' => string 'Submit' (length=6)
'_cred_cred_wpnonce_cred_form_4' => string '9d67ef65c5' (length=10)
'_cred_cred_prefix_post_id' => string '13' (length=2)
'_cred_cred_prefix_cred_container_id' => string '2' (length=1)
'_cred_cred_prefix_form_id' => string '4' (length=1)
'_cred_cred_prefix_form_count' => string '0' (length=1)
As you see the Generic Field is:
'custom_boxes' =>
array (size=1)
0 => string 'valueone' (length=8)
(only the checked field is present in this Data)
There is no label, only the value.
For the Field itself, the dump is as this:
/Applications/MAMP/htdocs/Stable/sub/wp-content/themes/twentyseventeen/functions.php:578:
array (size=1)
0 => string 'valueone' (length=8)
Again, the same array, and no label.