Answered Hiding related list item in SharePoint Tasks

  • Friday, October 16, 2009 1:22 PM
     
     
    I have created a workflow using SharePoint Designer that will collect information from a user and store it in a list.  I do not want the user to be able to view or edit the list.  All the information they need to see will be in an email that they receive.  When they open the task item that gets created by the Collect step in the workflow there is a "Related List Item" link at the bottom.  How can I hide this so that they cannot click on it and go to the related list?

    Thanks,
    Mark A. Rupert

Answers

  • Tuesday, October 20, 2009 3:27 AM
    Moderator
     
     Answered

    Hi,

    If you only want to hide the link button in a Workflow Task form, you can edit this form in SPD. After a new SPD workflow is created, there will create a new task form for this workflow in workflows folder: Open the Site using the SharePoint Designer >expand the Workflows in Folder List>expand the workflow that you created, you will find a new form page (“TaskName”.aspx) under the workflow> double-click the page and search for “Related list item” in Code view, and then set the <tr> tag to <tr style=”visibility:hidden”>. This will hide the “Related list item” in task form.

    Hope it can help you.


    Xue-Mei Chang

All Replies

  • Friday, October 16, 2009 1:38 PM
     
     
    Please try this approach that I have posted before:

    http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/b2048c36-9738-4bdf-8da2-622978ae563d


    If you are using the standard task form, which is /12/template/layouts/wrktaskip.aspx, then try to remove

                    <img IMG SRC="/_layouts/images/Workflows.gif" alt=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(GetLocString("WrkTask_PageTitle")),Response.Output);%>/>

    from the line, deactivate, uninstall, then install and activate your workflow. See if it works.
  • Tuesday, October 20, 2009 3:27 AM
    Moderator
     
     Answered

    Hi,

    If you only want to hide the link button in a Workflow Task form, you can edit this form in SPD. After a new SPD workflow is created, there will create a new task form for this workflow in workflows folder: Open the Site using the SharePoint Designer >expand the Workflows in Folder List>expand the workflow that you created, you will find a new form page (“TaskName”.aspx) under the workflow> double-click the page and search for “Related list item” in Code view, and then set the <tr> tag to <tr style=”visibility:hidden”>. This will hide the “Related list item” in task form.

    Hope it can help you.


    Xue-Mei Chang