SF Contact Form
SF Contact Form is a WordPress plugin that provides a contact form for a WordPress website which integrates with the SalesForce.com web-2-lead function which allows the creation of leads in the SalesForce CRM system automatically from a user submitted contact form.
How it works:
SF Contact Form generates a contact form with name, email address, phone number and message fields. When a user submits, this is sent via Curl to SalesForce.com and inserted into your CRM account as a new lead.
So you will need Curl working on your hosting account, and a Salesforce.com account that has the web to lead function (a group or above account).
Download verion 0.2.0 of SF Contact Form (521)
Some notes on Web 2 Lead:
- If you are testing the form and don’t see your lead in SalesForce right away, don’t panic – it can sometimes take a few minutes to see new leads.
Plans for next versions:
- Make fields customisable
- Optional required fields
- Improve error handling

hi,
If I want to install the form without using your crm, is that possible?
Roei
Hi Roei
Thanks for stopping by.
The form is designed to work with SalesForce CRM: http://www.salesforce.com/. If you are not using SalesForce, then I would advise you to try an alternative contact form plugin.
What is Curl? Why is it needed for this plugin to work?
Hi James
Curl is a php library, primarily used for making secure connections to other websites, servers etc. In the case of SF Contact form, it is used to make a secure connection between the website where the plugin is installed, and the SalesForce website.
These days it is pretty much standard, so most likely already on your hosting environment if you have php. http://php.net/manual/en/intro.curl.php
Any chance you could make a plugin for Sugar CRM?
I’ve downloaded the plug-in and I cannot figure out how to implement the it through the WP navigation.
I have the form working, now I need to add more fields how can do that?
Hello can anyone help? I have the plugin working on my blog, how can I add more fields?
Hey Ronan,
I’m trying to implement this plugin for a client of mine. I have followed the instructions to the letter and the form responds correctly but we’re not getting any information on his SalesForce account. He’s using BlueHost and I’ve verified they have curl installed. Is there anything else I’m missing? Something on the SalesForce side maybe?
Thanks for any support you can offer, in advance
Brian
Is it possible to add more form fields? How can I do that?
Thanks for this Ronan,
I have an upcoming project that I may be using this plugin for. I’ll likely need to add a significant amount of fields to sf-contactform.php to get it working. Do you have any plans for releasing a version that eases the addition of custom form fields? I can always add them manually, I’m just wondering if I should hold off for the next release before digging into the PHP.
Thanks again, this plugin looks truly promosing. If all goes well I’ll plan to give it a good rating in the Codex.
Hi folks,
Apologies for not getting back sooner. Been a rough month with a lot of work on.
@Geoff – I guess the fact I am so busy right now answers that one! I doubt I would be able to do one for SugarCRM any time soon but I will keep it in mind.
@James – glad you got it installed, sorry I couldn’t help at the time. In relation to more fields, I knew when I was developing it that this would crop up. At the moment, the fields are hard coded in, so changing them means modifying the code. I would like to change this so users can configure what fields the form displays, but that may be a month away. If I get a chance at the weekend, I may have a bash at getting this started.
@Brian – Are you still having problems?
@Kevin – I might have a bash at at least putting in a framework that allows you to set the fields as options. Will update this page if I do.
Hey Ro-
For some reason I wasn’t able to get it to work. I was able to grab some code from SF which does work. It uses iframe coding so it’s not as ideal as your plugin would have been. But none the less it was a solution that’s working and looks good.
Best of luck to you.
I am on wordpress 2.8.2.
Got this error message on activating the plugin:
Warning: setcookie() expects at most 6 parameters, 7 given in /var/www/vhosts/wirelessworldag.com/httpdocs/wp-content/plugins/sf-contact-form/sf-contactform.php on line 36
Maybe this has to do with another plugin: qtranslate
It would be nice, to add custom fields and also to be able to change the CSS of the input form.
Also, it would be nice to validate the fields before submitting them so that you have only valid data in the Lead.
Hi, is it possible use it for different mail ?
Thanks for your tip via Linked In.
We uploaded the plugin for SF Contact form. We got an error message:
Cannot load sf-contact-form/options-sfcontactform.php.
It won’t let us go any further.
Can you pleassssseeee help?
Thanks again,
Mark
Hi Ronan,
I’ve got your contact form installed and configured (or so I think), but I keep getting this error attached to the emails:
“WARNING: SalesForce Lead was not generated due to an error. Check your Org ID is set in options”
I’ve checked, the OID is indeed set and correct. We’ve used the web2lead service before, so that’s not the problem either. Any ideas?
Alex
How are you? buy nolvadex on sale http://www.stumbleupon.com/stumbler/med-brother/ buy clenbuterol nolvadex online Thank you.
Could you spare me a moment? buy nolvadex drug buy nolvadex uk
buy nolvadex on the net I hope we’ll meet again.
I was looking for the same answer as above, “how do I install this?” I found it at http://wordpress.org/extend/plugins/sf-contact-form/faq/.. Cutting and pasting…
How do I add the contact form to a post/page?
You need to add the to the body of the post/page in the editors HTML mode.
Is there a way we can put this in a widget so we can drag and drop it into the page?
I’m afraid that I gave up on the plugin.
I wrote my own widget using the Salesforce code (provided by Salesforce.com) and a few forums. Learned a lot actually about how it all works. A lot of respect for the plugin development as its a lot more advanced than mine. If you finalise it with the next step of a widget with parameters, then it’ll be fantastic
Hi Paul,
I’d be interested in your widget. I’m not a programmer and want something that is fairly simple and quick to implement.
Steve
Hey Paul
Thanks for your feedback. If I do get a chance to do more work on it, I will look at a widget all right.
If anyone else still needs help, I might actually have a bit of spare time this week (amazingly!) so feel free to ask!
Thanks
Ronan
Hi Ronan,
I’m interested in getting some help with a web2lead from a clients wordpress website to salesforce group.
Please feel free to contact and let me know the best way.
Steve
Is is possible yet to add custom fields?
how can i make fields mandatory and adding custom fields in this form
Hi. I just installed your plugin and had no problem getting the form to load onto the page but no luck getting the lead into my salesforce CRM when I tested it. Your thoughts? I’m using bluehost and a previous user confirmed that they have curl, whatever that means. Would appreciate your help!
Thanks!
Hey Ronan,
I have downloaded and tried to activate this plug-in in WP but I keep getting this:
Parse error: syntax error, unexpected $end in /data/17/1/59/160/1711160/user/1846612/htdocs/eblog/wp-content/plugins/sf-contact-form/sf-contactform.php on line 474
Please advise, this is for a client.
Lacey
Ronan,
Been trying to get cforms to talk to SalesForce for about a week and it’s driving me insane. Your plugin worked first time and appears to be a godsend, EXCEPT… we have to be able to add additional/custom fields to the form in order to make our SF leads valid.
Any timeframe for adding this functionality, or perhaps some instructions on how to accomplish it in the code?
Thanks!
Last July you mention the possibility of adding different fields to the forms. Is that possible?
james
I have the plugin installed but there is no validation. I can submit w/ out filling out any fields. I’ve changed these lines, updated the file, but it still submits w/ out any info in the fields.
//$lname_required = false;
$name_required = false;
$email_required = true;
$phone_required = false;
$msg_required = false;
Is there somewhere else I need to edit this? And why is there a (1) put after the field I’ve marked required on the form? Thanks so much for your work, and my n00b question.