+ Start a Discussion

display prospect fields with checkbox on a VF page

there is a convert button present on the prospect(Lead) page .When the user hits the convert button the fields of the prospect should be displayed on another   visual page along with the checkbox.How can i do this??


This is my code
.Where am i going wrong





<apex:page StandardController="Prospect__c" extensions="conversionrtestclass">

<apex:pageBlock >
<!--<apex:param name="id" value="{!id2}"/>-->
<apex:detail subject="{!id2}" />

<apex:pageBlock >
<apex:PageBlockSection title="People">
<apex:pageBlockSection title="Household">
<apex:pageBlockSection title="organisation">








public with sharing class conversionrtestclass {
        Prospect__c  leadList =new Prospect__c();
        LeadDedupUtility leadUtility;
       //public Prospect__c  myLead;
        public Id id;
        public Id id2;
        public ID getid()
        {return id;}
      public ID getid2()
        {return id2;}
       /* public Prospect__c setmyLead()
        return myLead;
        public conversionrtestclass(ApexPages.StandardController stdController)
                 leadUtility=new LeadDedupUtility();
                  //this.leadList  = ( Prospect__c )stdController.getRecord();
                // this.id= ApexPages.currentPage().getParameters().get(id);






What problem are you hitting?  Is your page not displayed, are there errors?

i wasn't able to get the id passed to my controller. :). it is solved now..I have one new doubt how can i put checkboxes for ?? the outfield contains fields from my standard controller ..i need to attach those fields with checkboxes

If this is additional data associated with the prospect, but not stored with it, then you'd use a wrapper class.  This is a custom class that contains the prospect itself and your additional data.