You need to sign in to do that
Don't have an account?
Baguiar2
apex:commandButton save and logout
HI,
is there a way I can do it in VF that the command button simply save the record and Logs the current user out ? Maybe through the apex:commandButton action ?
This is a simple VF page that would be handed out to a customer , no back buttons and no access to anything. The issue is that after saving the record through the VF page, SF goes directly to the lead record . IS there a way I can avoid that , logout and redirect to a diferent URL? Or maybe better ideas ? :)
Thanks!
B
Thanks for responding!
The requirement is simply the action on the button on the VF page to SAVE and then, Log out of SF. The best way really would be to SAVE, LOGOUT from Salesforce, and redirect to an URL.
Thanks again!
B
humm.. i've tried onclick="navigateToUrl('http://www.gotothis.com');" and it worked on the sandbox. Tried to copy to production and it doesn;t work.. code is exactly the same.
I know this just Navigates to a diferent URl but is part of the solution. not sure why doesn;t it work in the Sandbox...
Here is what I tried and it worked perfectly in the Sandbox, but in production, after clicking on the button, it goes to the standard LEad record page and it does not logout.
Not sure why it doesn;t work in production....
The kind of users you are mentioning in this, are they salesforce users just to add leads or they have other stuff to work on in the salesforce?