You need to sign in to do that
Don't have an account?
Insane@blr
Override Task page layout with visual force
Hi All,
I was trying to override standard task layout .But I struck while creating "Create Recurring Series of Tasks
" options. Can any body provide VF page code for overriding Task Page.
Thanks in Advance
Regards,
Insane
Hi,
IF you want override the Task standard page with VF custom page you can use the <apex:Input field> for implement the task field.
For example
VF page
<apex:page tabStyle="Task" id="page1" standardController="task" extensions="create taskcon" standardStylesheets="false">
<apex:form id="form1" >
<apex:inputfield id="Assignedinput" onchange="checkassignonchange()" value="{!t.ownerid}"/>
<apex:inputField id="Statusinput" value="{!t.Status}" />
<apex:inputField id="subjectinput" value="{!t.subject}"/>
Similarly other field of task
</apex:page>
//Controller
Class create taskcon
{
Public task t{get;set;}
Public taskcon()
{
Task t=new task();
}
}
For the recurrence series you have to use the apex component and develop the JavaScript logic for hide and show the field on the VF page and other logic in controller when saving the values .
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Navathar,
Thanks for your reply. Can you give VF code if you have.
Regards,
Insane
Hi,
You can try below code for override the task standard page
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Jain ,
Thanks for providing sample code.Ok i will comtinue from this point and update you.Thanks once again for providing immediate response .
Regards,
Insane12
Hi Jain,
I have designed full VF page for overriding task layout.Now problem when i try to create a task from this page, I checked isRecurrence is true and save button.Then iam facing problem with status.status is not accpting when i IsRecurrence is true and more ever isRecurrence is readonly when we update a task, it means we need make it true only when we create task.Here status is also required field on task,So How to handle status when we mark isRecurence is true.Could you please help on solving this issue.
Best Regards,
Insane12