Skip to main content
after a user submits a task form, they are automatically directed to the sharepoint task list. this is confusing to users, and we want to keep them AWAY from this list since we are only using the k2 worklist. is there a way to redirect them somewhere else after they click submit?

I am not aware of any way to do this.  I can pass this feedback on to the development team.  Would you want a configurable redirect or would a K2 specific task completed page be good enough?


-Eric


The redirecting to task list happens because when the form opens, it has a source paramater attached in its query string.. if u can delete it(key and value)..the form redirect to the page it was opened from which had the link without the source parameter. if you want to redirect the user to some other page u can give its url in the source parameter. for example &source=yoururl


Note: this yoururl page should be under the layouts folder of the sharepoint


thank you very much. are you able to give me an example? i'm not sure where/what i should be editing. thanks!

Can u paste the url which you are using to open the form here??


i am opening the form from the worklist. after clicking "open", it initially goes to this link:

http://sharepoint/depts/operations/_layouts/k2/WorkflowTask.aspx?SerialNumber=999_23&WorkflowInstanceId=99f5ef7c-8612-4d8f-bbd0-d45d5fb1a34d&ListId=4aeb0780-effe-43fb-bb8b-1cb1cd9d487c&ItemId=b348c188-12ec-4360-a449-b85efa057649&TaskListId=dd5e9f50-2f6c-477d-8c16-2c6f5b1288a1

but then it immediately (3 seconds later) opens up this:

 http://sharepoint/depts/operations/_layouts/K2BlackPearlPages/K2DefaultTaskPageAdvanced.aspx?ID=159&List=dd5e9f50-2f6c-477d-8c16-2c6f5b1288a1


The source parameter comes in the url when u are opening the form from the document library..I assume you are using forms generation event for this activity.


no, just using the default task forms. by the way, this is a sharepoint integration workflow not an infopath workflow. not sure if that makes a difference.

Sorry, i'm not familiar with that

If anyone's interested, here's my workaround:

 

  1. Go to the SharePoint task list that you wind up at.
  2. Insert a Content Editor Web Part above the List web part.
  3. Click on "Source Editor"
  4. Insert the following:

<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!--
function redirectsp()
  {
    top.location="http://sharepoint.domain.com/";
   }
   if (top.frames.length==0)
    {
     setTimeout('redirectsp()',1000);
     }
//-->
</SCRIPT>
</HEAD>

<body>
<font size="10" face="Verdana">
<i>
Redirecting you to the main site.<br>

If you are not redirected, click <a href="http://sharepoint.domain.com/">HERE.</a>
</i>
</font>
</body>
</html>

 

This is based upon the helpful information i found here: http://www.sharepointblogs.com/holliday/archive/2008/03/20/redirect-sharepoint-site-to-new-location.aspx


Reply