2

Please see the page layout below:

enter image description here

I want it to be the following:

enter image description here

Here, the box shown in the right is a inline visualforce page. is there a way to create the desired page layout?

3

No, this is not possible using the standard page layout features, because there is no equivalent to the HTML rowspan attribute. Therefore the cell blows the height of the entire row up. And without question it looks ugly...

If acceptable, I would recommend to use a different section in the layout which has only one column where you embed just your inline vf-page. This one-columns-section can be surrounded by two-column sections (above and below) which hold you regular fields. You can hide the captions of these sections to make them nearly invisible.

You could get the desired results exactly by overriding the standard layout with a visualforce page or by using officially not supported methods as described here : End of javascript sidebar workarounds? (this could also bring you a dynamic height if the iframe container if you need it)

2

If you absolutely must have that layout then you will need to create a second Visualforce page for your form so you can position both pages side-by-side on the layout.

A nice configurable way to do this is to create a field set with the desired fields and iterate over it within the second VF page to generate the form. This way admins can still manage the page layout without updating code.

  • This is a nice idea. In fact I can do it with one wide visualforce page, make two column layout in vf page, show fields in left and box in right. This, however, will also need a section – vishesh Feb 20 '15 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.