Use inputField in Apex #inSalesforce

Use <apex:inputField... in Class #inSalesforce


Page:

<apex:page StandardController="Candidate__c" extensions="inputSampleClass">
    <apex:form>
        <apex:inputField value = "{!Candidate__c.Name}"/>
        <br/>
        <apex:inputField value = "{!Candidate__c.Skills__c}"/>
        <br/>
        <apex:inputField value = "{!Candidate__c.Joining_Date__c}"/>
        <br/> 
        <apex:inputField value = "{!Candidate__c.Score__c}"/>
    </apex:form>
</apex:page>



Class:

public class inputSampleClass{ 
Public Candidate__c c;
public inputSampleClass(ApexPages.StandardController controller){
this.c = (Candidate__c)controller.getRecord();
}
}


Comments