You need to sign in to do that
Don't have an account?

Help to access VisualForce fields in Controller
I have made a custom LeadConvert page. I need to pass following values from the page to the controller. How can I achieve this?
Controller snippet:--
Controller snippet:--
<apex:pageBlockSectionItem > <apex:outputLabel for="Subject">Subject</apex:outputLabel> <apex:inputField value="{!Task.Subject}" id='tskSubject' > <apex:param value="{!Task.Subject}" assignTo="{!tskSubject}"/> </apex:inputField> </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:outputLabel for="Type">Type</apex:outputLabel> <apex:inputField value="{!Task.Type}" id='tskType'/> </apex:pageBlockSectionItem>
Use PageReference Class
A PageReference is a reference to an instantiation of a page. Among other attributes, PageReferences consist of a URL and a set of query parameter names and values.
Example.
ApexPages.currentPage().getParameters()
For more info pls refer below link
https://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_System_PageReference_getParameters.htm|StartTopic=Content%2Fapex_System_PageReference_getParameters.htm|SkinName=webhelp
Regards,
Naveen
SSE , Salesforce CI expert group
http://www.autorabit.com"
I am having problems in accessing fields in Task information section. Kindly help.
You are extending Standard Controller Lead and you are trying to access fields from Task which resulting a issue.
To achieve your requirement you need to write a Custom Controller.Pls refer below links..
https://developer.salesforce.com/forums/ForumsMain?id=906F000000096v4IAA
http://salesforce.stackexchange.com/questions/17364/visualforce-display-fields-from-multiple-objects
Mark it as best answer if it solves your problem.
Regards,
Naveen