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
DHO_604DHO_604 

Expression value does not resolve to a field

I'm overriding the create new case record by creating a new VF page, and if the creator is internal then make him select the record type.  However the VF page gives me the 'Expression value does not resolve to a field' error when I added the recordtype field onto the page.

 

This is what I did on the VF page:

 

 <apex:form >
      Select a Record Type:&nbsp; <apex:inputField value="{!Case.RecordType}"/>
  </apex:form> 

 

What did I do wrong?

 

TIA,

 

D

aballardaballard

Looks like the fieldname is just "Type".  So {!case.type} should work....

DHO_604DHO_604

Looks like the RecordType is not supported as an input field from further readings.  I'm looking into creating a custom component to handle this. 

 

Reference: http://salesforcesource.blogspot.ca/2009/01/visualforce-component-to-show-object.html

 

Please let me know if this is the right approach.

 

Cheers,


D

Jag@SFJag@SF

Try

 

<apex:inputField value="{!Case.RecordTypeId} "/>

 

I encoutentered the same error and when I used "RecordType" on a custom object

Kevin Hart 3Kevin Hart 3
Use {!Case.RecordType.Name} so that it corresponds to the label and not the ID