2 answers
hi TheRealist, I have created the below fieldset in my dev, for any sobject we can create a fieldset, I have used contact fieldset in below example, in repeat tag general, address is name of contact fieldsets.pls check it.<apex:page standardcontroller="contact" ><apex:form > <apex:pageBlock > <apex:commandButton value="save"/> <apex:commandButton value="cancel"/> <apex:pageblockSection title="General"> <apex:repeat var="field" value="{!$objecttype.contact.fieldsets.general}"> <apex:inputfield value="{!contact[field]}"/> </apex:repeat> </apex:pageblockSection> <apex:pageblockSection title="Address" columns="2"> <apex:repeat var="field" value="{!$objecttype.contact.fieldsets.address}"> <apex:inputfield value="{!contact[field]}"/> </apex:repeat> </apex:pageblockSection> </apex:pageBlock> </apex:form></apex:page>