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
Prashanth Kumar Singh Poorna SinghPrashanth Kumar Singh Poorna Singh 

How to save Live Agent Post-Chat Survery questions to Live Transcript

Hello All,

I have created a Custome object, then created Survery Questions as Custome fields. Then I created an VF page where I am using the Custom fields to get Survery response. I am able to save and create survery questions.
How can I relate  the Survery Questions Custom field to Live chat Transcript, Kindly help me here.

Below is the VF page code, How to save the Chat Key value to a Custom field ?

<apex:page showHeader="false" standardController="Chat_Survery_Question__c">

.page  {
  width: 400px;
  max-width: 1000px;
  overflow: -moz-scrollbars-vertical;
  overflow-y: auto;




<apex:form >
<apex:pageBlock id="squest">

alt="Pre chat" class="head-logo-cutom" /><br /> <br />

<h1>Thank you for using our Live Chat feature, Please provide your feedback on your Live Chat interaction</h1><br />
<apex:pageblockSection columns="1" >

1. How convenient was the Chat session? <br />
<apex:inputField value="{!Chat_Survery_Question__c.X1_How_convenient_was_the_Chat_session__c}" label=""/>
2. How well did the Chat Agent understand your needs, questions or concerns?
<apex:inputField value="{!Chat_Survery_Question__c.X2_How_well_did_the_Chat_Agent_understan__c}" label=""/>
3. How satisfactory was the Chat Agent response time?
<apex:inputField value="{!Chat_Survery_Question__c.X3_How_satisfactory_was_the_Chat_Agent_r__c}" label=""/>
4. How many of your questions or concerns were resolved in the Chat Agent session?
<apex:inputField value="{!Chat_Survery_Question__c.X4_How_many_of_your_questions_or_concern__c}" label="" />
5. How likely are you to use Chat again on the PEAK website?
<apex:inputField value="{!Chat_Survery_Question__c.X5_How_likely_are_you_to_use_Chat_again__c}" label=""/>
6. If you have additional comments about your chat experience please include them here:
<apex:inputField value="{!Chat_Survery_Question__c.X6_If_you_have_additional_comments_about__c}" label="" style="width:300px"/>


Chat Key: <apex:outputText value="{!$CurrentPage.parameters.chatKey}" /><br />       
                      <apex:commandButton value="Save" action="{!save}" style="width:70px" />