Activity Forums Salesforce® Discussions Error: Could not resolve the entity from <apex:inputField> value binding '{!variable}'

  • Error: Could not resolve the entity from <apex:inputField> value binding '{!variable}'

    Posted by Yogesh on August 9, 2019 at 3:00 pm

    I have a VF page with a controller. The controller has the following property (yes, I made sure to save):

    public Boolean IsBool{ get; set; }
    and the Visual Force page has the following code:

    <apex:inputField value="{!IsBool}" label="Is a bool" />
    This combination is giving me the following error when I try to save the Visual Force page:

    Piyush replied 5 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    August 12, 2019 at 4:50 am

    Hi Yogesh,

    Use  <apex:inputCheckbox value="{!someBool}">a checkbox?</apex:inputCheckbox> in your visualforce page and use

    public boolean someBool {get; set;} in your controller.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos