
2 answers
Hi JayaJaya, Please check the below code it will solve your problem .
**Please select it as best answer if it solve your problem to help others.<apex:page standardcontroller="Task">
<apex:form >
<apex:pageblock mode="edit" >
<apex:pageblocksection >
<apex:inputfield value="{!Task.WhatId}" />
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>