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
3C3C 

How to hide embedded Visualforce in page layout if render condition is not met?

I have a Visualforce page embedded in the standard Account page layout. It is rendered depending on a boolean field at the Account level. If the boolean value is false, it does not render but still takes up the space it would if it did render. Is there any way to hide this empty space if the page doesn't render (other than collapsing the section)?

User-added image
Ramu_SFDCRamu_SFDC
I don't think it will be possible as you are embedding the component in standard p age layout. The only option as far as my knowledge goes would be to replace the pagelayout with visualforce page and show/hide the sections based on criteria.