+ Start a Discussion
Anil SavaliyaAnil Savaliya 

Remaing white space when visaulforce page making renderded false in account section



I created section in account calls 'RelSci',and assiged visualforce page on that section,Rendering section only who has permission to use 'RelSci' function.When Visualforce page make rendered = 'False',In account view,RelSci visualforce page disapper but leaving white space,Any idea to remove white space?




Include the section which needs to be rendered based on the condition in OutputPanel and use the rendered condition in "OutputPanel"


Hope this helps.





Kamatchi Devi SargunanathanKamatchi Devi Sargunanathan



The only way to avoid this type of issue is you need display that in the <apex:outputpanel> component,


Say for example, you have some of the fields inside a pageblock to be displayed based on the rendering option you need to give it in the following method,




//To avoid whitespaces if it disappears based on rendering option

<apex:outputPanel rendered="<your condition here>">  

    <apex:inputField value="{!object__c.field1__c}"/>

    <apex:inputField value="{!object__c.field2__c}"/>






Hope so this helps you...!

Please mark this answer a Solution and please give kudos by clicking on the star icon, if you found this answer as helpful.