You need to sign in to do that
Don't have an account?

Order of fields in field sets
Hi,
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.
How to do that?
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:pageBlockButtons> <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)}"/> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
How to do that?
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?
Regards