- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Add Recipe
App Distribution (13)
Bundle logic, interface and services for distribution.
App Logic (52)
The Apex programming language, workflow and formulas for logic.
Collaboration (7)
The Salesforce Chatter collaboration platform.
Database (29)
Data persistence, reporting and analytics.
Integration (57)
Web Service APIs and toolkits for integration.
Security (22)
Platform, application and data security.
Tools (17)
Force.com tooling
User Interface (38)
Visualforce MVC and metadata-drive user interfaces.
Web Sites (13)
Public web sites and apps with optional user registration and login.
Beta Feedback
Recipes by Category
App Distribution (13)
Bundle logic, interface and services for distribution.
App Logic (52)
The Apex programming language, workflow and formulas for logic.
Collaboration (7)
The Salesforce Chatter collaboration platform.
Database (29)
Data persistence, reporting and analytics.
Integration (57)
Web Service APIs and toolkits for integration.
Security (22)
Platform, application and data security.
Tools (17)
Force.com tooling
User Interface (38)
Visualforce MVC and metadata-drive user interfaces.
Web Sites (13)
Public web sites and apps with optional user registration and login.
Cookbook Home » Creating a Web-to-Lead Form for Your Force.com Site
Share
X
Vote to Verify a Recipe
Verifying a recipe is a way to give feedback to others and broaden your own understanding of the capabilities on Force.com. When you verify a recipe, please make sure the code runs, and the functionality solves the articulated problem as expected.
Please make sure:- All the necessary pieces are mentioned
- You have tested the recipe in practice
- Have sent any suggestions for improvements to the author
Please Log in to verify a recipe
You have voted to verify this recipe.
© Copyright 2000-2011 salesforce.com, inc. Web-based Customer Relationship Management (CRM) Software-as-a-Service (SaaS).
All rights reserved Various trademarks held by their respective owners.
All rights reserved Various trademarks held by their respective owners.
Salesforce.com, inc. The Landmark @ One Market, Suite 300, San Francisco, CA, 94105, United States
General Enquiries: 415-901-7000 | Fax: 415-901-7040 | Sales: 1-800-no-software
General Enquiries: 415-901-7000 | Fax: 415-901-7040 | Sales: 1-800-no-software

Recipe Activity - Please Log in to write a comment
I want to follow up with the following information:
I have opened the following item on the idea exchange: Link here This idea would make it more transparent and secure. Please promote it.
In the mean time, you can use the HTTPS://mycompany.secure.force.com address for secure transactions with your organization.
I would not recommend using this receipe as you simply cannot use ssl on public sites unless a user has been authenticated (SFDC user or portal user).
I confirmed this with salesforce support. Log out of your SF session if you are in one (or use a different browser) and then goto the HTTPS addrress of your secure public site. You will notice that it redirects you to a NON secure (i.e. non SSL) page. Support told me that was how it was designed.
As mentioned in this forum post, this method (i.e. using a controller extension) isn't 100% secure as someone could guess lead ID's and do some URL hacking to view (FLS is probably read only but since create requires view....) leads other than their own.
I am very surpised that salesforce put this in the cook book given this flaw. IMHO Create should not require view - at least not for the public sites profile.
Is it possible to get the code for "Contact Us" page without the custom page?
Hello All
Any suggestion on how to create a login page showing your org logo, to login your company app without showing SFDC login page?
Great recipe, but what about test classes for the Apex code? Any help with that?
Sorry about the problem in the contact us page - it's now been fixed.
Goto to this link to get the correct CONTACT US page
http://wiki.developerforce.com/index.php/Web2Lead_with_Force.com_Sites
I believe the Contact Page and the Thank You page have the same code.
There isn't an input screen for entering the Leads.
Thank you
Is the Contact Us page suppose to be the same as the Thank You page?
This is a great article.
I have one question:
could we change the code slightly to show the usage of the standard controller's save method?
one suggestion:
Could we also add information about auto-response rules and assignment rules with DML options? This allows for reuse of standard Salesforce functionality without having to rewrite the code for it.