You need to sign in to do that
Don't have an account?
Jason Good 13
I have a simple VF question
Im on the getting started with visualforce module. I have written markup language before but it has been a while. in the code below, what line tell the form to put the save button at the top of the page vs the bottom? I always assumed that the code had to be placed where you wanted the button or at least have a line of code to tell it. Sorry for a simple question but i cant seem to pull the answer for myself.
<apex:page standardController="Contact" > <apex:form > <apex:pageBlock title="Edit Contact"> <apex:pageBlockSection columns="1"> <apex:inputField value="{!Contact.FirstName}"/> <apex:inputField value="{!Contact.LastName}"/> <apex:inputField value="{!Contact.Email}"/> <apex:inputField value="{!Contact.Birthdate}"/> </apex:pageBlockSection> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
The pageBlockButtons tag has a location option.