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
rJorgensenrJorgensen 

page block sections in standard layouts

We have added a few visual force pages to the opportunity layout inside of page block sections.  does anyone know how to collapse those section by default when the opportunity is loaded?

 

we would also like to be able to resize the iframe for the visual force page to more closely match the contents of the page.  any suggestions?

SteveBowerSteveBower

Resizing the iFrame is problematic because the Salesforce page containing the iFrame is served from a different domain than Salesforce uses to serve VisualForce pages.   So, there is no real way for the interior page to communicate it's size to the exterior page.  Kind of a bummer and it's been widely discussed on the discussion boards if you look for things like 'resize" and 'cross-domain scripting'.

 

Page Block Sections in VF have a 'collapsible="true"' parameter, but no 'collapsed="true"' parameter to specify the starting condition for the section.   Please promote idea: 

 

http://sites.force.com/ideaexchange/apex/ideaview?id=08730000000BrKMAA0

 

Best, Steve.

SteveBowerSteveBower
I recognize, btw, that you want to pre-collapse the Page Block Sections in the page layout as opposed to the VF itself.  I don't think there's a way to specify that.  -S