You need to sign in to do that
Don't have an account?
Display field result in Visualforce
I've created a couple of Visualforce pages for users to enter audit data.
I'm trying to create the final Visualforce page which will just display the results that were entered. I've run in to a problem when I've tried using <apex:outputText>. Whenever I use it for a checkbox field, it displays "false".
I did some more research and found a solution that was working until the checkbox was checked. The following code made the checkbox editable in the VF page (I just want to display the checkbox either empty or checked).
<apex:inputField value="{!Visit__c.Reasonable_Lead_Times__c}" rendered="{!Visit__c.Reasonable_Lead_Times__c}"/> <apex:outputField value="{!Visit__c.Reasonable_Lead_Times__c}" rendered="{!NOT(Visit__c.Reasonable_Lead_Times__c)}" />
I'm pretty much shooting for the traditional page layout field state where you cannot edit unless you double click or click edit. I'm not using a standard page layout because there is a ton of data on this page and I've made navigation much easier with a VF page.
Any suggestions?
Thanks,
Greg
I made this harder than I should have. I changed the input method to <apex:inputCheckbox> and disabled it which gave me what I wanted. A greyed out version of the input.