You need to sign in to do that
Don't have an account?
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.
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
<apex:inputCheckbox value="{!a.EJF_Approved__c}"/>