+ Start a Discussion

Order of fields in field sets

I have created a field sets for Account that has A,B, C,D,E,F as fields.  When i add the field set on Vf page it comes as column 2 as i have specified it. But i need D and E field should come in column 1.
<apex:page standardController="Account" extensions="CloneAccountController">

    <apex:sectionHeader title="Account Edit" />
  <apex:form id="frmId">
        <apex:pageBlock title="Account Edit" mode="edit">

            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            <apex:pageBlockSection title="Account Information"  columns="2" >
            <apex:repeat value="{!$Objecttype.Account.fieldsets.Method}" var="AI">
            <apex:inputField value="{!objaccount[AI.fieldPath]}" required="{!OR(AI.required, AI.dbrequired)}"/>  

How to do that?
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Richa,

If I have undestood you, you are showing the fields in two columns and want to show D and E in the first column, try putting A, B, C, D, F, E and this way it should appear something like this:
A          B
C          D
F          E

is this what you want?