function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hanmanthu kottalahanmanthu kottala 

object doesnot exist?

I have created my custom object  fullname   and it have three fields  name (default), middlename,lastname . I written visual force  code

<apex:page standardController="fullname" >
    <apex:form title="apex form">
       <apex:pageBlock>
           <apex:pageBlockSection>
           <apex:inputText  value="{!fullname.name}"/>
                <apex:inputText  value="{!fullname.middlename}"/>
                <apex:inputText  value="{!fullname.lastname}"/>
               <apex:commandButton  value="submit" action="{!save}"/>
           </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>


It showing error
    fullname does not exist    
I dont understand what's wrong in this program
Arunkumar RArunkumar R
Hi,

Since you are accessing custom object so it must end with __c. so change your code like below

<apex:page standardController="fullname__c" >
    <apex:form title="apex form">
       <apex:pageBlock>
           <apex:pageBlockSection>
           <apex:inputText  value="{!fullname__c.name}"/>
                <apex:inputText  value="{!fullname__c.middlename}"/>
                <apex:inputText  value="{!fullname__c.lastname}"/>
               <apex:commandButton  value="submit" action="{!save}"/>
           </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>


Ramu_SFDCRamu_SFDC
may be you also need to modify the field names by adding a '__c' suffix as below

<apex:page standardController="fullname__c" >
    <apex:form title="apex form">
       <apex:pageBlock>
           <apex:pageBlockSection>
           <apex:inputText  value="{!fullname__c.name}"/>
                <apex:inputText  value="{!fullname__c.middlename__c}"/>
                <apex:inputText  value="{!fullname__c.lastname__c}"/>
               <apex:commandButton  value="submit" action="{!save}"/>
           </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

hanmanthu kottalahanmanthu kottala
thank you ramu and arun