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

how to create a new task list button for visualforce page
Hi,
I create a list button newbranchtask for below vf code.
In this button i gave the url
/apex/branchvfcode?branch1__c?whoid={!Branch__c.Id}
My requirement this vfpage is going to store in Branch__c object .
I tried in differentways but no result
Here is my vf page
<apex:page standardController="task" >
<apex:form > <apex:pageBlock >
<apex:pageBlockButtons >
<apex:commandButton value="save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons> <apex:pageBlockSection columns="2">
<apex:repeat value="{!$ObjectType.task.FieldSets.newtaskinfo}" var="f">
<apex:inputfield value="{!task[f]}" />
</apex:repeat>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I create a list button newbranchtask for below vf code.
In this button i gave the url
/apex/branchvfcode?branch1__c?whoid={!Branch__c.Id}
My requirement this vfpage is going to store in Branch__c object .
I tried in differentways but no result
Here is my vf page
<apex:page standardController="task" >
<apex:form > <apex:pageBlock >
<apex:pageBlockButtons >
<apex:commandButton value="save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons> <apex:pageBlockSection columns="2">
<apex:repeat value="{!$ObjectType.task.FieldSets.newtaskinfo}" var="f">
<apex:inputfield value="{!task[f]}" />
</apex:repeat>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>