Welcome to Office & SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Hiding Custom List Items

Last post 11-16-2007, 2:38 PM by danholme. 0 replies.
Sort Posts: Previous Next
  •  11-16-2007, 2:38 PM 28880

    Hiding Custom List Items

    From the MSD2D archives
    Mauro Cardarelli
    7/5/2004

    ed: This tip provides a great, no-code way to hide items in custom lists in WSSv2 / SPS 2003. Of course, now WSS v3 and MOSS 2007 offer item-level security, which should be used to achieve this result. 

    I recently had a client pose an interesting Windows SharePoint Services question that required quick action and no custom coding. This is my (what I believe to be) clever solution.

    We're using WSS as an extranet. Some users will be accessing a specific site and will have visibility into a custom list of open issues. We want the users to see all the list items but only have update privileges on a subset. This is what we did:

    (1) Start with a SharePoint Custom List with a collection of items

    (2) After entering a new item, click on the Edit icon for that row. This should bring up the EditForm.aspx page.

    (3) Open that page in Microsoft FrontPage 2003 and save a copy, using File-Save As, under a different name (i.e. EditAdminForm.aspx). This version allows full access to list items.

    (4) Return to EditForm.aspx and open it again in FrontPage.

    (5) Click on you custom list and right click; select ‘Customize SharePoint List Form'.

    (6) For each item that you wish to hide, click on the label cell for the appropriate row. On the FrontPage nav bar, you should see a selected HTML tag (it is on the far right). Click on the closest to it. The entire row should be selected.

    (7) Click the dropdown and select ‘Edit Tag...'

    (8) In the pop-up, alter the tag to read and save. This makes that row invisible.

    (9) Repeat for each row you wish to hide.

    (10) Somewhere on the EditForm.aspx page, place a hidden object. I used a borderless, transparent textbox on the lower left. Give it the following URL: ""BLOCKED SCRIPTlocation.href='EditAdminForm.aspx'%20+%20location.search""

    The JavaScript will pass along the proper row ID. Admins will be trained to know where to look for the hidden URL and will have access to a full collection of list items. Unaware users will only see the visible list items. The SharePoint Save link works without alteration.


     


    Dan Holme
    Office & SharePoint Pro Community Leader
    MVP (Windows Server - Directory Services)
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

SharePoint Security SimplifiedHaving trouble with Permissions in your SharePoint environment? Check out USPM v2007® Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. Simplify Content Migration for SharePointEase the job of SharePoint migration and ongoing site maintenance. Michael Noel outlines your migration options in this white paper. Download today! Prepare Yourself for Exchange CatastropheRead this white paper to learn how you can keep Exchange server healthy, as well as predict and respond to server failure. Featured eBook - Fundamentals of Fax Server TechnologyTake advantage of the benefits of fax servers and find out how you can implement a solution that is easy to support, secure, and integrate. Dramatically Accelerate Microsoft SharePointDeliver unimpeded access to SharePoint - Learn how to fix more than just the symptoms of slow application delivery and poor performance. Protect Your Company’s Digital AssetsDo you know the risks of sending important files over email or FTP? Read this white paper to learn what you can do to safeguard your company’s data. Boost Customer Confidence and SatisfactionRead this eBook to learn how fax servers can ease communication with less computer-savvy customers while reducing your security, compliance, and support woes. Implement a Successful Archiving SolutionView this web seminar to learn the best practices for creating an email archive that is secure, compliant, and searchable.