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
Anil SavaliyaAnil Savaliya 

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

Hi,

 

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?

SurekaSureka

Hi,

 

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

 

Hope this helps.

 

Thanks

Sureka

 

Kamatchi Devi SargunanathanKamatchi Devi Sargunanathan

Hi,

 

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,

 

<apex:page>

..............

//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}"/>

</apex:outputpanel>

.................

</apex:page>

 

 

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.