You need to sign in to do that
Don't have an account?
Cthulhu4242
redirect to Visualforce page on record save
I would like to redirect to a Visualforce page I've created when a user saves an Opportunity, and the Opportunity is closed/won. I've written a trigger to test the logic and the new VIsualforce page, but I'm stumped on how to accomplish the redirect because apparently according to this thread: http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=3321 you can't redirect from a trigger.
Does anyone have any ideas on how to accomplish this?
Thanks in advance...
Does anyone have any ideas on how to accomplish this?
Thanks in advance...
All Answers
You can do this with an s-control in the interim, until apex or VF alternatives are available.
create a html s-control something like this
<html>
<head>
<title></title>
<script>
var newURL= "{!URLFOR ( $Action.Contact.NewContact, null, [ saveURL=$Action.Contact.View ], true) }";
window.parent.location.replace(newURL);
</script>
</head>
</html>
Then override your standard button. Done.
use on Update / on Insert in a trigger and it will accomplish what you want.