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
spraetzspraetz 

Be sure to check out Field Sets new in Spring '11!

Imagine enabling the power of the Page Layout Editor for your own custom-coded Visualforce pages.

 

Field Sets combined with the new Dynamic Binding in Visualforce allow you, the developer, to create Visualforce pages such that the fields that are displayed (and the order in which they are displayed!) are modifiable by non-technical adminsitrators via out-of-the-box point-and-click tools.

 

Field Sets are currently in open Beta -- which means that everyone can use them today!  You will find them on standard objects as well as custom objects!

 

A Field Set is a collection of fields that can be iterated over in an <apex:repeat> tag.  As a developer, you will have control over which fields are initially present in the Field Set as well as which fields the administrators can put in the Field Set after installing the package. 

 

Here is a link to a blog post with some sample code for using a field set: http://blog.sforce.com/sforce/2011/02/using-field-sets-in-spring-11.html

 

Field Sets in the Metadata API: http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_fieldset.htm

 

Field Sets in the Spring '11 release preview webinar: http://wiki.developerforce.com/index.php/Spring_11_release_webinar_archive

 

About Field Sets (Need to be logged in): https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_about_field_sets.htm&language=en

Creating and Editing Field Sets (Need to be logged in): https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_editing_field_sets.htm&language=en

If you have any questions about use cases, code, or anything else.  Please feel free to post here and I'd be happy to help!

 

-Ryan

Sushant RaoSushant Rao

Can I use fieldsets to display fields for edit and update records as well ?