Advertisement
Learnify_Rectify

Input Data Using Forms

Jun 27th, 2024
2,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | Source Code | 0 0
  1. Input Data Using Forms from (module - Visualforce Basics)
  2.  
  3.  
  4. -------------------------------------------------
  5. SOURCE CODE: CreateContact (Visualforce page)
  6.  
  7.  
  8. <apex:page standardController="Contact">
  9. <apex:form>
  10. <apex:pageBlock title="Edit Account">
  11. <apex:pageBlockSection>
  12. <apex:inputField value="{! Contact.FirstName }"/>
  13. <apex:inputField value="{! Contact.LastName }"/>
  14. <apex:inputField value="{! Contact.Email }"/>
  15. </apex:pageBlockSection>
  16. <apex:pageBlockButtons>
  17. <apex:commandButton action="{! save }" value="Save" />
  18. </apex:pageBlockButtons>
  19. </apex:pageBlock>
  20. </apex:form>
  21. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement