Hi, did you check the following documentation? Did you also check the following troubleshooting documentation?
Regards
Hello,
Of course, I wrote this topic, because I do not find the answer in the documentation.
You want to say, that I was not attentive with docs?
But I really have not found info, about – how to concatenate several fields from form & send in to my CRM, in one field.
Thanks for your not indifferent, about my issue.
Best,
Hi, my apologies for asking about the URLs above. That is one of the first questions I always ask when someone has an issue in the forum. I always point them to the developers solutions and documentation site.
Unfortunately I have not spent enough time with this particular feature in the plugin to be able to answer your question. Sorry about this.
The plugin developer will investigate further your issue.
Kind regards
-
This reply was modified 8 years, 9 months ago by
mbrsolution.
Hello,
Many thanks for your replay.
Hope it possible in implementation with my issue.
Thanks,
Regards
filter hook to modify email_fields array before data export
Add the following code to your theme’s functions.php file or to a custom plugin.
Be sure to set the setting in the function to control which forms you want this on.
function my_action_email_fields_posted($email_fields, $form_id_num) {
##################################
// control which forms you want this on
$all_forms = false; // set to true for process on all forms, or false to use settings below
$forms = array('1','2'); // one or more individual forms
##################################
if ( !in_array($form_id_num, $forms) && $all_forms != true)
return $email_fields;
// make some code here to modify fields
$email_fields['Commets'] = $email_fields['Gender'] . ', ' . $email_fields['Year'] . ', ' . $email_fields['Comments'] ;
return $email_fields;
}
// filter hook to add any custom fields to email_fields array (not validated)
add_filter('si_contact_email_fields_posted', 'my_action_email_fields_posted', 1, 2);
Hi Mike,
Thank you so much!
I think I understand.
“Be sure to set the setting in the function to control which forms you want this on.”
– You mean, that I can set this in this line:
$forms = array('1','2'); // one or more individual forms
in the array, by typing the ID form. Is it correct?
Thanks for your replay,
Best
@tsurule, yes you need to state which forms you are applying the above code too.
Regards