How to redirect to URL in Sharepoint workflow?

I want to redirect to a URL in workflow.
For example, if condition A, redirect to URL A
else if condition B, redirect to URL B.
Any idea how can do that?
Thank you.

WSS 3, SPD 2007.
Who is Participating?
Ivan PadabedConnect With a Mentor Director, Technology SolutionsCommented:
SP workflows are executing out of web context. if you need to redirecr user based on value entered in NewForm or EditForm, you have to customize corresponded form to have your own OnSubmit handler; it should update an item and then perform redirect
I don't think I understand your question .

The workflow (as defined by the SharePoint Desinger or Visual Studio ) does not use http post or get or redirect commands.

can you let me know what are you trying to do and put some screen shots , that would help.

Best of luck.
tzaradConnect With a Mentor Commented:
For what you intend to to you need to use event handler
see this link
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Ivan PadabedDirector, Technology SolutionsCommented:
wow tzarad, could you please write a code sample redirecting user browser in Event Receiver? It will be really appreciated, in my 6 year dev experience in SP I've never seen such approach. I believe that you didn't get the question right.
May be I didn't understand it :) But an option seems to be cancelling the event and redirect to a custom page link
One thing is sure, you will not be redirected by a workflow action, so you have to modify the code behind your New or Edit Item form using Sharepoint Designer if you don't want to use the redirect option in the cancelevent.
Ivan PadabedDirector, Technology SolutionsCommented:
make sense, thanks for the link tzarad. but drawback here is that item will not be updated if we use CancelWithRedirect. Not sure if this is acceptable but it is an option.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.