WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Contact Form 7 on my website and would like to integrate Salesforce lead tracking with it.

I was able to add a hidden field with my oid as suggested on this site

But when I submit the contact form after adding this, it just gets stuck and never actually returns. As soon as I remove the hidden field, it starts working fine.

Has anyone been able to integrate the lead tracking system with Wordpress Contact Form plugins?

I also tried using cform with the instructions provided here. But this gives a warning that fopen failed. I assume thats because fopen does not allow write operations with HTTP wrappers. Not sure how the author managed to get it working!

Would appreciate any help on this! I do not want to use the salesforce Web-to-lead form. Thanks.

share|improve this question

closed as off-topic by birgire, kaiser Jul 28 '14 at 14:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

I've used the Gravity Forms plugin and its post form-submission hook to fire off a server-side web2lead curl request in wordpress before now. Wasn't too difficult.

Essentially your web2lead form submission is purely server-side so the regular gravity forms entry logging (including IP etc...) just carries on working. You get your data in both WP and SF.

share|improve this answer
Also now has a Salesforce plugin which supports web-to-lead wordpress.org/extend/plugins/gravity-forms-salesforce – Drai Sep 20 '12 at 14:24

I wrote a tutorial about this on my blog: how to integrate salesforce in contact form 7

share|improve this answer

May I ask why you don't want to use S/F's web to lead? I had a client that wanted to the same, and salesforce's web to lead form worked. It works best though if you paste the code directly into the template. And their web to lead code provides built in js validation, so you don't really have to do much other than style it.

share|improve this answer
Quite some reasons I dont want to use it - I want the IP addr from which the request was sent. Using the other plugins I can send an email with the information whereas with the web-to-lead plugin it will only be updated in Sforce. There is no spam-protection with the SF form/plugin – lostInTransit Oct 9 '10 at 5:12

There are a lot of benefits of not using the standard Web to Lead. Spam issues, validation, requiring certain fields, and visitor tracking to name a few.

One of the above entries links to Alex Hager's site which has an excellent guide, I used that as the basis for my own tweaked instructions (90% copied from Alex's) which also include info on how to use this with Custom Fields.


Or, if you want something simple without programming but that has the bells and whistles of Contact Form 7, try the Wordpress to Lead plugin,


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.