Hi,
I have a sub group field in which I have a select field. How can I get label from the select field? I have a value, but i need a label.
I found this code, but I need it in the sub group version.
$parts_name = rwmb_meta( 'group' );
$group_settings = rwmb_get_field_settings( 'group' );
$select_settings = $group_settings['fields']['select_field_id'];
foreach ( $parts_name as $part_name ) {
$value = $part_name['item'];
$label = $select_settings['options'][$value];
echo $label;
}
Thank you