You need to sign in to do that
Don't have an account?
tedevang
Add Task Button to go to associated Opportunity
I would like to add a custom button on the task edit screen that does 2 things:
1. Save the task
2. If the Related To is an Opportunity, go to that Opportunity.
I believe I just need the javascript code that saves the task and sets the return URL. Any help would be appreciated.
Thanks.
I don't think you can do this without VisualForce. I'm fairly sure that all pages in "edit mode" cannot be overridden. You would have to build your own VF Page to achieve your goal.
My approach would be:
Of course, there are some holes to fill in the above recipe but it should give you an idea of what needs to be done. If anyone out there thinks I'm way off with my approach please speak up.
Cheers.
Søren Nødskov Hansen