VF Page
<apex:page standardController="Applications__c" lightningStylesheets="true">
<apex:sectionHeader title="Application For Employment"/>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection columns="1" showHeader="true" title="Application For Employment">
<apex:inputField value="{!Applications__c.Full_Name__c}"/>
<apex:inputField value="{!Applications__c.Job_Posting__c}"/>
<apex:inputField value="{!Applications__c.Company__c}"/>
<apex:inputField value="{!Applications__c.Positions__c}"/>
<apex:inputField value="{!Applications__c.Phone__c}"/>
</apex:pageBlockSection>
<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Insert" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
Controller:
public class Applications_c {
public Job_Posting__c Job_Posting{get; set;}
public Applications__c createapplication{get; set;}
public void createapplication() {
createapplication = new Applications__c();
}
public PageReference saveApplication() {
insert createapplication;
return null;
}
}
This is my code to be able to insert a new application. It doesnt create a new record, not getting any errors.