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
NewInternNewIntern 

Simple SObject Checkbox not displayed in inline VF component

I am confounded by this issue. I am able to display a custom SObject checkbox in an inline VF component on the Contact page layout. However, with the same code (this time std controller = Account), I am unable to display the checkbox on the Account page layout even though I can drag and drop the inline VF component onto the Account page.

 

Here is my VF page code:

<apex:page standardController="Account">
 <apex:form >
  <apex:pageBlock id="theBlock">
<!-- first row -->
    <apex:pageBlockTable value="{!Account}" var="a"> 

        <apex:column headerValue="Fund/Status">
            <apex:outputText >
                <b>EJF</b>
            </apex:outputText>

        </apex:column>
          <apex:column headerValue="On Approved List">
              <apex:inputField value="{!a.EJF_Approved__c}"/> 
          </apex:column>

    </apex:pageBlockTable>
<!-- end of first row -->
  </apex:pageBlock>
 </apex:form>    
</apex:page>

 EJF_Approved is the name of the custom checkbox and is in the list of custom fields under Account fields:

 

http://i.stack.imgur.com/GPpP5.png  [SF page screenshot - "Account Custom Fields and Relationships"]

http://i.stack.imgur.com/0ocqU.png   [SF page screenshot - definition of custom checkbox in question]

 

On the accounts page, this is what I see - no checkbox:

http://i.stack.imgur.com/cvjXH.png

 

There are no errors. Finally, the Account tab is renamed to Investor. I don't think that's the spoiler but just to round up all possibly pertinent information.

 

It seems like I'm getting something fundamentally wrong here but don't quite see it. Please help.

 

Avidev9Avidev9
Seems like a permission issue.
Go to your field "EJF_Approved__c" , THere should be a button called "Set Field Level Security", click that and check if that is marked visible for the required profiles
NewInternNewIntern
I use the Pro Edition. I can't define a field level security. What could the problem be then?
Avidev9Avidev9
Well just a workaround replace <apex:inputField value="{!a.EJF_Approved__c}"/> with
<apex:inputCheckbox value="{!a.EJF_Approved__c}"/>
NewInternNewIntern
Thanks. Well, I tried this too - doesn't work either.
NewInternNewIntern
Alright, I figured out how to display the checkbox. When I place checkbox1 (cb1) in the detail list, cb1 appears in the inline VF section. Otherwise cb1 refuses to pop up in the inline VF. Similarly, when I add cb2 to detail, then cb2 also appears inline. This does not happen in EE though. How can I display only inline in PE?