Hi @mauriciopluri,
I’ve found some time; and tested the example in the FAQ, but that works with a product field. Not sure if you’ve copy / pasted the code, but it does need some tinkering to work.
The example figures it’s form 1
and field 3
. Yours might be different.
However… ??
As with your previous question, stuff is way more difficult than I thought, so I really need to finish my next release and fix the missing part. This code will also change the name off the field to a numeric field, rendering it as 0. So that’s not really useful. I’m kind of bummed out I couldn’t help you out fully (for now), but hope you can still use this code:
add_filter('gfexcel_value_type', function ($type, \GF_Field $field) {
if (in_array($field->get_input_type(), ['singleproduct', 'calculation'])) {
return \GFExcel\Values\BaseValue::TYPE_NUMERIC;
}
return $type;
}, 10, 2);