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
Gopesh Vardhan SinghGopesh Vardhan Singh 

Problem while saving this apex code

// Getting error while trying to save this apex code in Vf page .....

Position__c  is my custom object and Educational_Requirements__c is the custom feild of this objest...



<apex:page standardController="Position__c" sidebar="false">
<apex:form>
         <apex:inputField value="(Position__c.Educational_Requirements__c)"/>



</apex:form> 
</apex:page>



Error is :Error: Attribute value in <apex:inputField> must contain only a formula expression that resolves to a single controller variable or method in CandidateMap at line 3 column 78
Arunkumar RArunkumar R
Hi Gopesh,

You wrongly did binding variable. Change your code like below,

<apex:page standardController="Position__c" sidebar="false">
<apex:form>
<apex:inputField value="{!Position__c.Educational_Requirements__c}"/>
</apex:form> 
</apex:page>
Gopesh Vardhan SinghGopesh Vardhan Singh
Thank Arun kumaR
pradeep naredlapradeep naredla
change this part as (Position__c.Educational_Requirements__c) ---   {!Position__c.Educational_Requirements__c}
Arunkumar RArunkumar R
Welcome gopesh. Please mark if you are satified the above solution that i provided.

Thanks,
Arunkumar R