+ Start a Discussion

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
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.