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
Shree KShree K 

how to call a fieldset on visualforce page based on the selected option of the picklist field value in salesforce?

Hi,

how to call a fieldset on visualforce page based on the selected option of the picklist field value in salesforce?if npossible An example Apex code will be highly appreciated.

Thanks
CKrdY
James LoghryJames Loghry
CkRdY,

Here's a doc on examples of how to utilize field sets in an apex:repeat element here: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm

To expand on that example, you would use an actionSupport / apex action to get the selected picklist value.  Using that value you could then determine, through a Map, which list of field set members to return.
Shree KShree K
Thanks for your time James Loghry,
What I am looking for is..the syntax that helps me to popup Fieldset after rerendering when a picklist value is selected in the field on my VF page, 
for Eg:-When Course is selected among the picklist values available in my Request type field,CSO named fieldset has to be displayed on the VF page.