1

I have put together a little VF page in order to display a table. I want to use it in a 2 column section within a Page Layout, with fields in the first column and the VF page in the second column. However, when I put the VF Page in the 2nd column it separates the 1st field from the rest by pushing them downwards.

I have included a file to help illustrate what I'm trying to do here :

Page Layout section ; 1st column with fields 2nd with VF page.

2 Answers 2

1

That's normal, and, in fact, you can't stop it from happening. Internally, page layouts are rendered as tables, and you can't specify row-spans for a standard layout. You'll want to vote for this idea.

2
  • Thank you - any ideas on a fix for now ? I was thinking of making another VF table for the other 4 fields and just having 2 VF pages in the same section...I'm guessing that would work. If you have any ideas I'd love to hear them.
    – Zoom_v
    Mar 9, 2018 at 19:30
  • 1
    @Zoom_v Yes, you could write another VF page. There's just no way to do so with configuration-only.
    – sfdcfox
    Mar 9, 2018 at 19:36
1

I would make one VF page consisting of two columns: the left column with the fields now on the left of your page layout section, and the table on the right. Then place it in a single-column section of the page layout. That would give you the layout you are looking for, but would mean a little less flexibility for an admin to rearrange fields on the page layout.

2
  • If you want an admin to be able to adjust the fields in the left column, you can use a Field Set. Mar 9, 2018 at 21:14
  • just fyi - I ended up making two separate tables dropped into a 2 column section on the page layout. It was easier making two because they ended up being formatted very differently (one had a header, the other didn't). Thank you everybody.
    – Zoom_v
    Mar 13, 2018 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .