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
AlasAlas 

How to access Custom FieldSet in Visual Force page?

How to access Custom FieldSet in Visual Force page?

@anilbathula@@anilbathula@

Hi Alas,

 

Try this Code:-

<apex:page standardcontroller="Ur_object_Name">
<apex:form >

<apex:pageblock >

<apex:pageBlockButtons >
<apex:commandButton value="Cancel" action="{!cancel}"/>
<apex:commandButton value="Save" action="{!save}"/>
</apex:pageBlockButtons>

<apex:pageblocksection columns="2">
<apex:page >

</apex:page>
<apex:repeat value="{!$ObjectType.Ur_object_name.FieldSets.Ur_field_set_Name}" var="f">
<apex:inputfield value="{!Ur_object_Name[f]}">
</apex:inputfield></apex:repeat>
</apex:pageblocksection>

</apex:pageblock>
</apex:form>
</apex:page>

 

 

Thanks

Anil.B