• Resolved esgardilion

    (@esgardilion)


    Hi there!
    First of all, thanks for this great plugin…
    I find myself trying to integrate the form submission data into a custom CRM… the problem I have is that in the CRM, there are some field names which need to be the same as the name given to CF7 input fields..
    For instance I have the following format

    {
        "your-name": "??????",
        "your-email": "??????",
        "phone": "??????",
        "medium": "??????",
        "origin": "??????",
        "segmentId": "??????",
        "campaignTag": "??????"
    }

    “your-name” should be “name” and “your-email” should be “email”, but those are reserved words for wordpress and it won′t let me set it like that… Is there any possible way I can send the data as follows:?

    {
        "name": "??????",
        "email": "??????",
        "phone": "??????",
        "medium": "??????",
        "origin": "??????",
        "segmentId": "??????",
        "campaignTag": "??????"
    }

    Muito obrigado

Viewing 1 replies (of 1 total)
  • Plugin Author Mário Valney

    (@mariovalney)

    Hi @esgardilion, how are you?

    It’s cool to see you are using this plugin to integrate CF7 to another webhook. I’m happy.

    About your problem, I guess you can use the ‘ctz_get_data_from_contact_form’ filter to change the name. Try this in your functions.php or in some custom plugin:

    function esgardilion_ctz_get_data_from_contact_form( $data ) {
        $data['name'] = $data['your-name'];
        $data['email'] = $data['your-email'];
    
        unset( $data['your-name'] );
        unset( $data['your-email'] );
    
        return $data;
    }
    
    add_filter( 'ctz_get_data_from_contact_form', 'esgardilion_ctz_get_data_from_contact_form', 10 );

    I cannot test this right now, but I guess this will work as you want. Let me know the result, please.

    Thanks for using our plugin and a review would be would be aprecciated.

    • This reply was modified 6 years, 11 months ago by Mário Valney.
Viewing 1 replies (of 1 total)
  • The topic ‘Change name of pair values sent to zapier’ is closed to new replies.