You need to sign in to do that
Don't have an account?

How do redirect to a new page If check boxed is checked?
I want to redirect to a new page (pagebpc) when user hit Save and Review button if above check box is checked. Otherwise it should goes to view page as it is on the extension. How do you add code for if it is checked, redirect to new and, If it is not, just the way it is. Thanks
Input field for check box
<apex:inputField value="{!Product_Brief__c.Bioprocess_Container_Customization_Reqd__c}" />Save Button
<apex:commandButton value="Save & Review" action="{!next}"/>Extension
public PageReference next() { if(controller.save() == null) { return null;} PageReference ref = Page.gibcopb2; ref.getParameters().put('id', controller.getId()); ref.setRedirect(true); return ref; }
You can clean it up if you want (like take pagereference declaration outside of if) but not needed.
thx.