Customizing the Thank You Page

You can configure the Thank You page to display a Survey Form. The fields in the Form are defined as Message Object Properties in Business Administrator and can either be mapped using Properties Inheritance or left unmapped.

To Display Post Session Survey Forms

To configure Survey forms, you must modify VChatFormLeft.inc and ThankYou.asp. These files are available in the <installation folder>\Media\VisitorChat and <installation folder>\Media\VisitorChatENU folders on the IIS server computer where Web Components have been installed.

Modifying VChatFormLeft.inc (in the VisitorChat and VisitorChatENU folders)

The code for displaying the Survey Form in the Right pane of the visitor’s browser can be customized in this page.

Refer to this code snippet in VChatFormLeft.inc

document.location.replace("ThankYou.asp?Opr=Show&SID=" + SessionID + "&CustMail=" + CustMail + "&CurrentURL=" + CurrentURL+"&visN=" + visitorName); //The next line is to display the survey form in ThankYou.asp on the whole of the right frame...

//ReplaceRightPane("ThankYou.asp?Opr=Show&SID=" + SessionID + "&CustMail=" + CustMail + "&CurrentURL=" + CurrentURL);

If the Survey Form is to be displayed in the Right pane, comment the first line and remove the comments on the last line of the code snippet.

Modifying ThankYou.asp (in the VisitorChat and VisitorChatENU folders)

Refer to this code snippet in ThankYou.asp

<!-- For survey forms, put code here... -->

<!-- For retaining values from survey forms in DB, name the properties in the format name="<TAB_GROUP_PROPERTYNAME>"... Check example below...-->

<!-- <table width="90%" border="0" cellspacing="0" cellpadding="4">

<tr>

<td>Your feedback from this short survey will help us to improve our support.

</td>

</tr>

</table>

<table width="90%" border="0" cellspacing="0" cellpadding="4">

<tr>

<td colspan="2" bgcolor="#336699">Service &amp; Support</td>

</tr>

<tr>

<td valign="top">1.</td>

<td><b>How would you rate your experience with the support representative?</b></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="very_satisfied">Very satisfied<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="somewhat_satisfied">Somewhat satisfied<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="somewhat_dissatisfied">Somewhat dissatisfied<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="very_dissatisfied">Very dissatisfied

</td>

</tr>

<tr>

<td>3.</td>

<td><b>What specifically contributed to your answer above?</b> <font size="1" color="red">(255 character limit)</font></td>

</tr>

<tr>

<td>&nbsp;</td>

<td><TEXTAREA cols=36 name="<TAB_GROUP_PROPERTYNAME>" rows=4 maxsize="10"></TEXTAREA>

</td>

</tr>

<tr>

<td valign="top">4.</td>

<td><b>Do you consider your inquiry resolved?</b></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="yes">Yes<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="no">No<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="disconnect">Had to disconnect to try the solution<BR>

<INPUT name="<TAB_GROUP_PROPERTYNAME>" type="radio" value="referred_elsewhere">I was referred elsewhere

</td>

</tr>

<tr><td colspan=3><hr></td></tr>

<script> isThankPage = true;</script>

</table>

-->

In order to capture data filled in the Survey Form in a Message Object Property, replace <TAB_GROUP_PROPERTYNAME> with the Tab Name, Group Name, and Property Name. For example, if you want to capture the value specified by the visitor in the How would you rate your experience with the support representative? field in a Custom Message Property called Rating created under the tab called Customer Experience and a Group called Feedback, you must replace <TAB_GROUP_PROPERTYNAME> with customer experience_feedback_rating.

Note 

Ensure that the Tab, Group, and Property Names you specify are in lower case.