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
IanDoneganIanDonegan 

Is there a way to edit field sets in two columns?

Hello All,

We have Field Sets, which show up in one column when we edit them, and visualforce pages that show those fields in two columns. Every time someone wants a change, have to draw out the changes on paper, work backwards to get the one column list, and then manually compare them. This would be much easier if we could either:

1. Edit the field set in two columns so it looks exactly as it will when rendered in the visualforce page

2. Render the fieldset out of order (something like the pseudo-apex code below)
for (Integer i; i < FieldSet.size(); i++) {
  Integer LeftColumnPlace = 0;
  Integer RightColumnPlace = RoundUp(FieldSet.Size()/2);
  if (i is not odd) {
    Display(FieldSet.get(LeftColumnPlace));
    LeftColumnPlace++;
  } else {
    Display(FieldSet.get(RightColumnPlace));
    RightColumnPlace++;
  }
}