+ Start a Discussion
SteveMouSteveMou 

Is it possible to Hide specific Panels on VF pages?

Does anyone know if it is possible to completely hide a specific Panel on Visual force Pages?

 

For example I have a Panel on the Account screen that I only want to display if it is the Parent Account record. We store our Accounts by location so we might have 50 different Accounts called "ABC", but only 1 of them is the Parent Headquarters location.

 

I have a custom field called "Primary Account" that indicates whether the Account is the Parent or not. How can I then only show this specific panel on the screen if it is the Parent Account location?

Jake GmerekJake Gmerek

It is hard to go into specifics with no code, but most VF components have a "rendered" attribute that you can place a check on.  So you could basically say that a component can only be rendered if it is a parent account.  If you have problems figuring it out, post your code and I will take a look at it for you.