Skip to content

Instantly share code, notes, and snippets.

@dancinllama
Created March 6, 2013 22:11
Show Gist options
  • Save dancinllama/5103570 to your computer and use it in GitHub Desktop.
Save dancinllama/5103570 to your computer and use it in GitHub Desktop.
<apex:repeat var="fs" value="{!$ObjectType.Lead.FieldSets.My_Fs}">
<apex:inputField value="{!currentLead[fs]}" rendered="{!editableFields[fs.fieldPath]}" required="{!fs.required}" />
<apex:outputField value="{!currentLead[fs]}" rendered="{!NOT(editableFields[fs.fieldPath])}" />
</apex:repeat>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment