+ Start a Discussion
nivyajnivyaj 

condional rendering with a redirect

Here is the set up. I have a standard page layout with custom buttons.

 

When the user clicks a button, i want to check a value in the extension class. If the value is null or 0- i want a pages message to appear on the current page (or get a pop-up), otherwise i want to redirect them to another VF page.

the way that i'm attempting to do this is put a VF section on the page layout, and have it conditionally render the message using an action:support method, but I can't get it to work..

 

Help?