You need to sign in to do that
Don't have an account?
Holly Havelka 10
Help hiding a Visualforce Tab in a Community based on conditional criteria
Hi all,
Does anyone know of a way to display or not display a Visualforce Tab in a custom Salesforce Tabs + Visualforce Page community?
This requirement would be based on whether a field value is marked as 'Display' in custom settings. The Visualforce page has a custom controller. Is there a way to modify my controller to only show Visualforce Tab in navigation if this field is marked?
Any ideas or suggestions are greatly appreciated!
Holly
Does anyone know of a way to display or not display a Visualforce Tab in a custom Salesforce Tabs + Visualforce Page community?
This requirement would be based on whether a field value is marked as 'Display' in custom settings. The Visualforce page has a custom controller. Is there a way to modify my controller to only show Visualforce Tab in navigation if this field is marked?
Any ideas or suggestions are greatly appreciated!
Holly
All Answers
I am assuming you are talking about apex:tab tag. If yes, suppose you have hierarchy custom setting (Say, we have checkbox named Display) then we can do something like this:
<apex:tab rendered="{!$Setup.CUSTOM_SETTING_API_NAME.Display__c}" />
So, if in my custom settings (list not hierarchy), if the checkbox for Display__c is NOT checked, the Application tab should be hidden.
You need to put condition like If you are not getting then let me know. We can connect on skype.
Thanks
Hemant