function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
deva mdeva m 

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>