You need to sign in to do that
Don't have an account?
Deepak 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>
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>
Make sure the API name of the field is correct.
Best Regards,
Sandhya