Sub label (First) and (Last) not visible in export
-
Hi Doenke,
First of all, thank you for this great plugin. This is exactly what I needed!
There’s only one thing that’s not exporting correctly for me. Can you check is there’s an easy way to fix this?
I have a lot of name fields with sub label ‘First’ and ‘Last’. On these fields I use a custom Admin Field Label. I’ve already found some code from you to make sure these labels are used and that works great. Only thing I need now is the (First) and (Last) part to apear too.
For example I have a label “Present_name (First)”. When I export with the generated URL, the label becomes “Presenter_name” without the (First) or (Last) part. As we already built an offline tool that uses that exact header, I need the export to include that part.
Is it possible to add these in any way?
Coding I already used from you:
/**
* Concatenate name fields on a single line.
*/
add_filter(‘gfexcel_field_value_name’, static function (string $value) {
return str_replace(“\n”, ‘ ‘, $value);
});/**
* Labels bij export
*/
add_filter(‘gfexcel_field_label’,function($label,$field) {
if($field->adminLabel) {
return $field->adminLabel;
}
return $label;
},10,2);
- The topic ‘Sub label (First) and (Last) not visible in export’ is closed to new replies.