Support » Plugin: Fast Secure Contact Form » Advanced | Silent Remote Sending | Raname few fields to one name

  • Hi there,

    Has anyone encountered such a case?
    I need to get several fields sent in to one field my CRM System.
    Suppose I have three fields with next field tags:

    Gender, Year, Comment

    And I try to mapping to my System field ‘Commets’

    So, I just rename my all field like that:

    Gender=Commets
    Year=Commets
    Comment=Commets

    But, it does not work for me.
    Can anyone recommend, how can I do it

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, did you check the following documentation? Did you also check the following troubleshooting documentation?

    Regards

    Thread Starter Vol. Tsurule

    (@tsurule)

    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 4 years, 7 months ago by mbrsolution.
    Thread Starter Vol. Tsurule

    (@tsurule)

    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);
    Thread Starter Vol. Tsurule

    (@tsurule)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Advanced | Silent Remote Sending | Raname few fields to one name’ is closed to new replies.