Support » Plugin: Contact Form 7 » Form action – change or add additional?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try something like this in your additional settings:

    on_sent_ok: “location = ‘’+$(‘#name’).val()+’&company=’+$(‘#company’).val();”

    Where you have something like this in your contact form (note the id):

    [text name id:name]
    [text company id:company]

    When the user completes the form the page will redirect to passing name and company as parameters in the query string.

    Does that help?

    Alternatively if your CRM has inbound email processing then why not just fire the email straight into the system and have the CRM process the email instead? That will save having to make changes to your website.

    Thanks for your help WorksIQ but unfortunately that won’t do the job I need it to.

    I am trying to integrate with Click Dimensions for Dynamics CRM and it requires me to chnage the form action to point to a specific url.

    I have now managed to get the form action to change on one particular form by using the following code:

    //change form action
    function wpcf7_custom_form_action_url($url)
    	if (is_page(4702)) {
    		return '';
    	} else {
    		return $url;
    add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');

    But although in the source view I can see the form action has changed, when I click submit the loading arrow just spins and we get no further. I don’t get a success or error message and the data is not passed through to Click Dimensions either.

    I’ll have to do some more digging I think…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form action – change or add additional?’ is closed to new replies.