You need to sign in to do that
Don't have an account?
dhruv mehta 15
Inputting Data Using Forms challenge
<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:pageBlockSection>
<apex:pageButtons>
<apex:commandButton action"{!Save} value="Save"/>
</apex:pageButtons>apex:pageBlockButtons>
</apex:pageButtons>apex:pageBlock>
</apex:form>
</apex:page>
this is the code i had written but its got some error.
<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:pageBlockSection>
<apex:pageButtons>
<apex:commandButton action"{!Save} value="Save"/>
</apex:pageButtons>apex:pageBlockButtons>
</apex:pageButtons>apex:pageBlock>
</apex:form>
</apex:page>
this is the code i had written but its got some error.
Your Code is almost correct except the Commandbutton Action.
Find below the updated code.
Mark this Best Answer if it helps you.
Best Regards,
Onesh.K
All Answers
Your Code is almost correct except the Commandbutton Action.
Find below the updated code.
Mark this Best Answer if it helps you.
Best Regards,
Onesh.K