• D Yarham
  • NEWBIE
  • 25 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I built a web to lead and thank you form using Sites and CMS Force.  Both pages open up on their own perfectly.  When the "Web-to-Lead" page is open and the user hits Submit, they are taken to the "Thank You" page.

 

On the Thank You page, I want it to stay open for 3 seconds and automatically switch back to the Web-to-Lead form.  The reason is we want to use this at tradeshows to capture leads so when a person inputs information, it thanks them, then reverts back to the web to lead form for the next person.

 

I cannot get the Thank You page refresh to work however.  It works perfectly as HTML so I thought it would work in a Visualforce page.  Here is the code I'm using.  The questionable part is in red.  Does anyone have an idea on how to make this work?  Currently the "Thank You" page just loops back over to itself every 3 seconds. 

 

<apex:page showHeader="false">
<html>
<head>
<title>Idearc Media National Sales</title>

<META http-equiv="refresh" content="3"; URL="http://idearcmedia.force.com/w2l">

</head>
<body>

<table width="100%" cellspacing=20>
<tr>
<td align=center>
<br>
<br>
<br>
<FONT SIZE=6>
Thank you for entering.</font></td></tr>
<tr><td align=center>
<font size=5>You will be notified within 14 days if you are the WINNER!</FONT>
</td></tr>
<tr><td align=center>
<p>&nbsp<p>
</td></tr>
<tr><td align=center>
<c:contentblock name="Logo"></c:contentblock>
</td></tr>
</table>
</body>
</html>
</apex:page>

Mainly just for fun but i've put together a few screens to try out some design patterns.

 

http://www.youtube.com/watch?v=OI4-NpYqxx0&hd=1

I built a web to lead and thank you form using Sites and CMS Force.  Both pages open up on their own perfectly.  When the "Web-to-Lead" page is open and the user hits Submit, they are taken to the "Thank You" page.

 

On the Thank You page, I want it to stay open for 3 seconds and automatically switch back to the Web-to-Lead form.  The reason is we want to use this at tradeshows to capture leads so when a person inputs information, it thanks them, then reverts back to the web to lead form for the next person.

 

I cannot get the Thank You page refresh to work however.  It works perfectly as HTML so I thought it would work in a Visualforce page.  Here is the code I'm using.  The questionable part is in red.  Does anyone have an idea on how to make this work?  Currently the "Thank You" page just loops back over to itself every 3 seconds. 

 

<apex:page showHeader="false">
<html>
<head>
<title>Idearc Media National Sales</title>

<META http-equiv="refresh" content="3"; URL="http://idearcmedia.force.com/w2l">

</head>
<body>

<table width="100%" cellspacing=20>
<tr>
<td align=center>
<br>
<br>
<br>
<FONT SIZE=6>
Thank you for entering.</font></td></tr>
<tr><td align=center>
<font size=5>You will be notified within 14 days if you are the WINNER!</FONT>
</td></tr>
<tr><td align=center>
<p>&nbsp<p>
</td></tr>
<tr><td align=center>
<c:contentblock name="Logo"></c:contentblock>
</td></tr>
</table>
</body>
</html>
</apex:page>