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

How can I display custom field value column in a VF Page?

How do I put this syntax in VF page? I have getExtraColumn1Name() in the controller. My code is in managed package. I want to display custom fields added by our customer.


<apex:column rendered="{!showExtraColumn1}">
  <apex:outputField value="{!itemSO['ExtraColumn1Name']}" />


value="{!itemSO[ExtraColumn1Name]}" gives an error message saying could not evaluate SampleTable__c[ExtraField1__c]  which is understandable. I do not see any way to place the quote around the fieldName in this syntax {!itemSO[<fieldName>] }.