Custom Export Field functions
-
Hi,
I am trying to use the Edit Field > Custom Export Field to run a function with 2 variables. However, I am getting “an unknown error occurred” when previewing the output.
My code looks like this:
Custom export field:
[set_city({Municipality},{Custom Municipality})]
Function Editor:
function set_city($muni = null, $custom_muni = null) { if(!empty($custom_muni)) { return $custom_muni; } else { return $muni; } }
Does the custom export field not support functions with more than one variable? Any thoughts?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Export Field functions’ is closed to new replies.