Page Editor in Salesforce


 The below code is used to show Save button and the fields to be filled.
Its a simple example for page editor.

Visualforce code:

<apex:page standardController="Member__c" extensions="AddAll">
<apex:form >

<apex:pageblock title="Member" mode="edit" >

  <apex:pageBlockButtons>
    <apex:commandButton action="{!save}" value="Save"/>
  </apex:pageBlockButtons>
  <apex:pageBlockSection columns="1">
    <apex:inputField value="{!Member__c.name}"/>
    <apex:inputField value="{!Member__c.E_Mail_Id__c}"/>
    <apex:inputField value="{!Member__c.Mobile_Number__c}"/>
    <apex:inputField value="{!Member__c.Birthday__c}"/>
  </apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:page>

Cheers!!!

No comments:

Post a Comment