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
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?