You need to sign in to do that
Don't have an account?
dgindy
Thanks
PageReference( ) and required Field
I have a page where I'm trying to leave the page on a cancel button but the required field wont let me. Any ideas?
Code:
public PageReference Leave() { string x = ApexPages.currentPage().getParameters().get('DoctorId'); PageReference pageRef = (new PageReference('/'+x)); pageRef.setRedirect(true); return pageRef; }
Thanks
jwetzler
Please refer to the immediate attribute on commandButton / commandLink.