checkbox fields not passed on
-
I’m using the web-to-lead addon, and I couldn’t get the checkbox fields to feed through to salesforce without making changes to the plugin code.
To make it work I had to modify line 535 in /inc/web-to-lead.php from
$value = preg_replace('/'.preg_quote($glue).'+/', $glue, $data[$label]);
to
$value = preg_replace('/'.preg_quote($glue).'+/', $glue, $value);
($data[$label] does not exist!)and in /inc/kwsaddon.php from
if(array_key_exists($field_id, $value)) { $merge_vars[$var_tag] = $value[$field_id]; }
to
if(array_key_exists($field_id, $value)) { $merge_vars[$var_tag] = $value[$field_id]; } else { $merge_vars[$var_tag] = $value; }
because otherwise the field values, that were returned as an array were lost.
Can you please make sure a fix for this is included in the next update?
Thank you very much,
Uli
- The topic ‘checkbox fields not passed on’ is closed to new replies.