function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

WebToLead in form



i created a form using the salesforce lead utility. 

This utility created a standard HTML form with action and method.


I have a ASP.NET project with masterpages. and in this case it is not possible to insert the html form in my page because then i will get a form in another form. 


I tried to make a asp button control with postbackurl but it doesn't seem to work.


Any advice?


Thx in advance


Hi Kartal,

The Web-To-Lead form simply does a post sending a bunch of parameters to SalesForce.

If you want to get rid of that form then you have to make your outer form (ASP.Net form) post to that same url.


If you want to first check a fiew things or do some processing on your server before committing the record to salesforce then you can:

   - Create yourslef an .aspx page and gather and validate the parameters. Once your are ready to commit the records to SF you can either do a post (search on google it is pretty common requirement to do a post) or you can interface directly with SF via their web services API which is very very easy.