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

Field Sets on VF Page
Hi,
I have create a field sets for Account that has A,B, C,D as fields. I have 2 record type for Account. A,B is required for 1 record type and C,D is require for another record type. IF i mark them as Require on the fieldset property then all fields are required for both page layout.
How to make sure that they are required on the relevant page layout?
I have create a field sets for Account that has A,B, C,D as fields. I have 2 record type for Account. A,B is required for 1 record type and C,D is require for another record type. IF i mark them as Require on the fieldset property then all fields are required for both page layout.
How to make sure that they are required on the relevant page layout?
<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="{!objcase[AI.fieldPath]}" required="{!OR(AI.required, AI.dbrequired)}"/> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
All Answers
-Praveen K Hari
1) my requirement is have custom button "NEw" that should have same fields as stanar page layout with some fiels populated. Since i have 2 recor type ( 2page layout), i ceated a 2 VF page from scratc example input field, out put field. do you think this is the best prarctice?
Please choose best answer if you think your query got resolved.
-Praveen K Hari