+ Start a Discussion
Puja ChoudharyPuja Choudhary 

radio button in visualforce email templates

Hi,
I hava a custom object Feedback__c and a visualforce page "feedbackpage ". Whenever a case is "closed" a link having the feedbackpage address goes to the customer for giving feedback.

The feedbackpage consists of radio buttons and smiley images .
But i want to incorporate the smiley and the radio button in the email template itself.
How can i do this??
<apex:form >
        <apex:pageBlock >
              <div class="vertical-center">
                  <div class="container">
                      <div class="row">
                          <div class="col-sm-8 col-sm-offset-2">  
                            <center><apex:image url="{!URLFOR($Resource.smiley,'smiley/pb.PNG')}" style="width:300px;height:60px;" /></center>

                                       
                              <div class="panel panel-primary"> 
                                  
                                  <div class="panel-body"> 
                                        <div class="alert-danger">
                                        <apex:messages />
                                        </div> 
                                                                    
                                        <table border="0">
                                            <tr>
                                               <apex:image url="{!URLFOR($Resource.smiley,'smiley/excellent.png')}" style="padding-left:66px;" />
                                                        
                                                <apex:image url="{!URLFOR($Resource.smiley,'smiley/good.png')}" style="padding-left:135px;"/>
                                                        
                                                <apex:image url="{!URLFOR($Resource.smiley,'smiley/poor.png')}" style="padding-left:133px;"/> 
                                                      <td class="center">
                                                         <p>
                                                         <apex:selectRadio value="{!feedback.PB_Survey_Result__c}" styleClass="radioinput" style="width:456px;">
                                                           <apex:selectOptions value="{!types}"></apex:selectOptions>
                                                         </apex:selectRadio>
                                                         </p>
                                                     </td> 
                                             </tr>
                                        </table>
                                  </div><!-- panel- body-->
                               </div> <!-- panel primary -->     
                                    
                                
                                <div class="row">
                                    <div class="col-md-8 col-md-offset-5">
                                     <apex:commandButton styleClass="btn btn-success" value="Save" action="{!save}" />&nbsp;&nbsp;
                                     <apex:commandButton styleClass="btn btn-danger" value="Cancel" immediate="true" action="{!Cancel}" /> 
                                    </div>
                                </div> 
                            </div> 
                          
                          </div>                  
                      </div>
                  </div>
             
        
       
     </apex:pageBlock>   
    </apex:form>

want the same thing in email template.