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
honda57honda57 

Cannot get Field Set to show up

Here is my code.  I refresh using a valid recordID and it comes up completely blank...

 

<apex:page standardController="Lead">

<apex:repeat value="{!$ObjectType.Lead.FieldSets.QDR_Information}" var="f">
<apex:outputText value="{!Lead[f]}" /><br/>
</apex:repeat>

</apex:page>

 

Am I missing something?  Tutorials are very simple for this yet I can't get it to work...

kiranmutturukiranmutturu

as you are using output text in the page it will expect some value to render but no value is assigned or auto populate based on the logic...if you want to see the filedset you can try like below

 

 

<apex:page id="pageId" standardcontroller="Lead">
<apex:form id="formId">
<apex:pageblock id="pbId">
<apex:pageblocksection columns="1" id="pbsIs">
<apex:repeat value="{!$ObjectType.Lead.FieldSets.QDR_Information}" var="f">
<apex:inputfield value="{!Lead[f]}">
</apex:inputfield></apex:repeat>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>

honda57honda57

Thanks.  That works, but is there a way to make the fields dynamically editable via double-click?

 

<apex:outputfield> just makes the field and values visible.  I want the user to be able to edit them.  Is there a simple attribute I need to add?