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
SalesforceCYSalesforceCY 

Web-to-lead and ThankYou page do not work together

I am trying to create a lead in Salesforce and redirect to a thankyou page. I am able to get one of them working but not both.Please help

 

 

 

<FORM name="xx" id="form_id" action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8"  onsubmit="xx;" method="POST"> 
<input type="hidden" name="oid" value="xx">
<!--<input type="hidden" name="debug" value="1">
<input type="hidden" name="debugEmail" value="xx"> -->
<input type="hidden" name="retURL" value="http://www.sithankyou.php"/>

Best Answer chosen by Admin (Salesforce Developers) 
SalesforceCYSalesforceCY

Well that was just a sample.....

 

Nevermind found the solution !!!

All Answers

werewolfwerewolf

Is this really the thank you link you're using?

 

http://www.sithankyou.php

 

That is a nonsense URL.  I presume there should be more there?

SalesforceCYSalesforceCY

Well that was just a sample.....

 

Nevermind found the solution !!!

This was selected as the best answer
Kevin FoodyKevin Foody
Do you mind sharing the solution? I am having similar issues.

Thank you,

Kevin