I have below requirement to Create a VF page. I created a custom object called DormsApplicants__c There are several fields but for the purposes of the example we will use only one field called First_name__c.
My main need is to create a VF page that will be available to people outside the organization (i.e. customers) who can enter data into the form and then create a record in the custom object DormsApplicants__c. For this purpose I created a website (SITE.COM) and then created a VF page (called TEST) I defined this page (TEST) as a home page on the site.
This is my page:
<apex:page standardController="DormsApplicants__c" sidebar="false">
<apex:form id="theForm">
<apex:pageBlock title="TEST">
<apex:inputText title="TEXTBOX1" label="TEXTBOX2" value="{!DormsApplicants__c.First_name__c}"/>
<apex:commandButton value="save" action="{!save}"/>
</apex:pageBlock>
</apex:form>
Image A1 - This is what users see outside the organization.
When the user tries to click "save" he gets the following error:
Of course no record is created. I'd love to hear what the problem is?