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
Deepak Tiwari 17Deepak Tiwari 17 

Error: Could not resolve field 'Amount_Invested__c' from <apex:inputField> value binding '{!contact.Amount_Invested__c}' in page contactform1

Hi All,

Please help me to sort out this query...error mentioned above

<apex:page standardController="Contact" >
<apex:form >
    <apex:pageBlock >
    <apex:pageBlockSection title="General Information" columns="2" >
     <apex:inputField value="{!Contact.FirstName}"/>
     <apex:inputField value="{!Contact.LastName}"/>
     <apex:inputField value="{!Contact.Email}"/>
     <apex:inputField value="{!Contact.Phone}"/>
     </apex:pageBlockSection>
          
     <apex:pageBlockSection title="Address Information" columns="2" >
     <apex:inputField value="{!Contact.MailingCountry}"/>
     <apex:inputField value="{!Contact.MailingCity}"/>
     <apex:inputField value="{!Contact.MailingState}"/>
     <apex:inputField value="{!Contact.MailingPostalcode}"/>
     </apex:pageBlockSection>  
     
     <apex:pageBlockSection title="Amount Information" columns="2" >
                <apex:inputField value="{!contact.Amount_Invested__c}"/>
                <apex:inputField value="{!contact.Amount_Earned__c}"/>
                 </apex:pageBlockSection> 
                                 
<apex:pageBlockButtons Location="Bottom">
    <apex:commandButton action="{!save}" value="Save"/>
    <apex:commandButton action="{!cancel}" value="cancel"/>
     </apex:pageBlockButtons>
    </apex:pageBlock>
   </apex:form>
</apex:page>
SandhyaSandhya (Salesforce Developers) 
Hi,

Make sure the API name of the field is correct.

Best Regards,
Sandhya