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
Arindam Chakraborty 13Arindam Chakraborty 13 

Not Able to View RadioButton on Live Agent Survey Page

I have a postchat VF page and controller, containing below code

**VF Page:** 

    <apex:page controller="start" tabstyle="Plan__c" showHeader="false">
    <apex:form >
    <apex:selectRadio value="{!planRecord.train__c}">
                <apex:selectOption itemLabel="Public" itemValue="Public"/>
                <apex:selectOption itemLabel="Private" itemValue="Private"/>    
                <apex:selectOption itemLabel="Subsidiary" itemValue="Subsidiary"/>    
                <apex:selectOption itemLabel="Other" itemValue="Other"/>        
    </apex:selectRadio>
    </apex:form>
    </apex:page>


**Controller**:

    Public class start{
       public Plan__c planRecord{get {
                                              if (planRecord == null)
                                                planRecord = new Plan__c ();
                                              return planRecord;
                                            }
                                       set;}
       public string train{get;set;}
       private final Apexpages.Standardcontroller controller;
       public start(Apexpages.Standardcontroller sc){
        planRecord=(Plan__c)sc.getRecord();
        this.controller=sc;
       }
      public start(){
      }
      public PageReference Save()
      {
        insert planRecord;
        return null;
      } 
    }

**train__c** is a custom field in my custom object **Plan__c**.

Now when I check the VF page in preview mode, it works fine and show the radio button.
But when I add the vf page on **Post-Chat Page of Live Agent**, it do not show the radio button.

If I remove the ***value="{!planRecord.train__c}"*** from radion button, then it show on post chat. I need to access the value from postchat page 
Please help
Best Answer chosen by Arindam Chakraborty 13
pconpcon
It's most likely that you do not have access to that object from an external site.  The post chat form is not going to run as the same user that the preview is.  What are your Public Access Settings [1] set to for your object?

[1] https://help.salesforce.com/HTViewHelpDoc?id=sites_public_access_settings.htm

All Answers

pconpcon
It's most likely that you do not have access to that object from an external site.  The post chat form is not going to run as the same user that the preview is.  What are your Public Access Settings [1] set to for your object?

[1] https://help.salesforce.com/HTViewHelpDoc?id=sites_public_access_settings.htm
This was selected as the best answer
Arindam Chakraborty 13Arindam Chakraborty 13
@pcon It worked. But now on live agent chat window I need to show the chat transcript on postchat page, after client or agent ends the chat.