You need to sign in to do that
Don't have an account?
kgrasu
When I add the following for the Assigned To, it throws the error "Assigned To ID: owner cannot be blank". Basiaclly I want to display the Assigned To field as it appears in the standard Log a Call edit page. Is there some reference available somewhere for converting all these fields in the standard page into a VF page?
Appreciate all your valuable feedbacks.
Why can't I add the Assiged To field in Task to my visualforce page?
Hi
I am trying to override the edit page for "Log a Call" or task with a custom visualforce page. I am having trouble getting some of the fields like
I am trying to override the edit page for "Log a Call" or task with a custom visualforce page. I am having trouble getting some of the fields like
Assigned To,
Related To and
the checkbox "Send Notification Email".
I was able to add other fields uisng the API names.
Appreciate if anyone can help with the right way to adding the above fields in VF page.
When I add the following for the Assigned To, it throws the error "Assigned To ID: owner cannot be blank". Basiaclly I want to display the Assigned To field as it appears in the standard Log a Call edit page. Is there some reference available somewhere for converting all these fields in the standard page into a VF page?
VF Code:
<apex:page standardController="Task" extensions="conTaskNew">
<apex:form >
<apex:pageBlock id="mypageblock" title="Task Edit" mode="new">
<apex:pageBlockButtons >
<apex:commandButton onclick="return lsave()" action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Task Information" columns="2" id="theSection">
<apex:inputField id="vOwner" value="{!task.OwnerId}"/>
<apex:inputField id="vActDate" value="{!task.ActivityDate}"/>
<apex:inputField id="vsubject" value="{!task.Subject}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Appreciate all your valuable feedbacks.
<apex:page standardController="Task">
<apex:form>
<apex:commandButton value="Save" action="{!save}"/>
<apex:inputField value="{!Task.OwnerId}"/>
<apex:inputField value="{!Task.Subject}"/>
</apex:form>
</apex:page>
Make sure, you are not setting Null as ownerId in anywhere in your code.