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

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?