You need to sign in to do that
Don't have an account?
Arindam 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
**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
[1] https://help.salesforce.com/HTViewHelpDoc?id=sites_public_access_settings.htm
All Answers
[1] https://help.salesforce.com/HTViewHelpDoc?id=sites_public_access_settings.htm