• Rahul Kotian
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi guys,
I have a requirement for live agent chat:
1) we have a pre chat form where we gather the customer info.
2) If the fields match with existing contact in salesforce then open that contact sub tab in console (which can be achieved using "liveagent.prechat.findorcreate.map.doFind:Contact" and "liveagent.prechat.findorcreate.map.isExactMatch:Contact" )
3) But if the contact doesnt exist we need to open a console tab which has our custom search page .
I didnt find any methods in liveagent api to open sub tab in console.  
Any suggestions on how to achieve this ?

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>