You need to sign in to do that
Don't have an account?
John Neilan 2
Debug Commandbutton
Does anyone know how to debug a Comandbutton in a VF page? I have a page that has a JavaScript script with a window.location.href element. The Commandbutton is mean to call this script and direct the user to the URL in the href element. Everythign save properly, but all the button does when pressed is refresh the page. Does anyone know how I can figure out what is actually happening when I press the button and why it's not calling the window.location.href element of the script?
In order to direct the user to other page it is better you use action method with return type of pagereference.